Added config to set the max concurrent downloads

This commit is contained in:
2023-10-31 17:35:58 +02:00
parent d3555b6fca
commit 6d41d51694
4 changed files with 60 additions and 20 deletions

View File

@@ -49,4 +49,14 @@ public static class ServerCom
await DownloadFileAsync(URl, location, progress, null);
}
public static Task CreateDownloadTask(string URl, string location)
{
return DownloadFileAsync(URl, location, null, null);
}
public static Task CreateDownloadTask(string URl, string location, IProgress<float> progress)
{
return DownloadFileAsync(URl, location, progress, null);
}
}