Soenneker.Utils.File.Download
2.1.42
Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Soenneker.Utils.File.Download --version 2.1.42
NuGet\Install-Package Soenneker.Utils.File.Download -Version 2.1.42
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Utils.File.Download" Version="2.1.42" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Soenneker.Utils.File.Download --version 2.1.42
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.Utils.File.Download, 2.1.42"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Soenneker.Utils.File.Download as a Cake Addin #addin nuget:?package=Soenneker.Utils.File.Download&version=2.1.42 // Install Soenneker.Utils.File.Download as a Cake Tool #tool nuget:?package=Soenneker.Utils.File.Download&version=2.1.42
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Soenneker.Utils.File.Download
Provides a flexible utility for downloading files from specified URIs, with thread-safe concurrency and automatic file name conflict handling
Installation
dotnet add package Soenneker.Utils.File.Download
Usage
- Register
IFileDownloadUtil
within DI (Program.cs
).
public static async Task Main(string[] args)
{
...
builder.Services.AddFileDownloadUtilAsScoped();
}
- Inject
IFileDownloadUtil
Example:
public class TestClass
{
private readonly IFileDownloadUtil _util;
public TestClass(IFileDownloadUtil util)
{
_util = util;
}
public async ValueTask Download()
{
string directory = "path/to/save/files";
List<string> uris = new List<string>
{
"https://example.com/file1.jpg",
"https://example.com/file2.jpg",
"https://example.com/file3.jpg"
};
int maxConcurrentDownloads = 3;
List<string> downloadedFiles = await _util.DownloadFiles(directory, uris, maxConcurrentDownloads);
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Soenneker.Utils.File (>= 2.1.1224)
- Soenneker.Utils.HttpClientCache (>= 2.1.952)
- Soenneker.Utils.Path (>= 2.1.670)
- System.Threading.RateLimiting (>= 8.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
3.0.168 | 0 | 11/21/2024 |
3.0.167 | 7 | 11/21/2024 |
3.0.166 | 5 | 11/21/2024 |
3.0.165 | 23 | 11/21/2024 |
3.0.164 | 19 | 11/21/2024 |
3.0.163 | 21 | 11/21/2024 |
3.0.162 | 22 | 11/21/2024 |
3.0.161 | 19 | 11/21/2024 |
3.0.160 | 21 | 11/21/2024 |
3.0.159 | 25 | 11/20/2024 |
3.0.158 | 34 | 11/20/2024 |
3.0.157 | 32 | 11/20/2024 |
3.0.156 | 29 | 11/20/2024 |
3.0.155 | 28 | 11/20/2024 |
3.0.154 | 35 | 11/20/2024 |
3.0.153 | 28 | 11/20/2024 |
3.0.152 | 35 | 11/20/2024 |
3.0.151 | 28 | 11/20/2024 |
3.0.150 | 29 | 11/20/2024 |
3.0.149 | 27 | 11/20/2024 |
3.0.148 | 29 | 11/20/2024 |
3.0.147 | 27 | 11/20/2024 |
3.0.146 | 27 | 11/20/2024 |
3.0.145 | 27 | 11/20/2024 |
3.0.144 | 27 | 11/20/2024 |
3.0.143 | 27 | 11/20/2024 |
3.0.142 | 28 | 11/20/2024 |
3.0.141 | 30 | 11/20/2024 |
3.0.140 | 30 | 11/19/2024 |
3.0.139 | 28 | 11/19/2024 |
3.0.138 | 30 | 11/19/2024 |
3.0.137 | 29 | 11/19/2024 |
3.0.136 | 31 | 11/19/2024 |
3.0.135 | 28 | 11/19/2024 |
3.0.134 | 30 | 11/19/2024 |
3.0.133 | 29 | 11/19/2024 |
3.0.132 | 28 | 11/19/2024 |
3.0.131 | 30 | 11/19/2024 |
3.0.130 | 28 | 11/19/2024 |
3.0.129 | 32 | 11/19/2024 |
3.0.128 | 25 | 11/19/2024 |
3.0.127 | 28 | 11/19/2024 |
3.0.126 | 27 | 11/19/2024 |
3.0.125 | 62 | 11/15/2024 |
3.0.124 | 58 | 11/15/2024 |
3.0.123 | 63 | 11/15/2024 |
3.0.122 | 59 | 11/15/2024 |
3.0.121 | 56 | 11/15/2024 |
3.0.120 | 61 | 11/14/2024 |
3.0.119 | 62 | 11/14/2024 |
3.0.118 | 62 | 11/14/2024 |
3.0.117 | 67 | 11/14/2024 |
3.0.116 | 64 | 11/14/2024 |
3.0.115 | 66 | 11/14/2024 |
3.0.113 | 65 | 11/14/2024 |
3.0.112 | 59 | 11/14/2024 |
3.0.111 | 63 | 11/14/2024 |
3.0.110 | 61 | 11/14/2024 |
3.0.109 | 59 | 11/14/2024 |
3.0.108 | 59 | 11/14/2024 |
3.0.107 | 71 | 11/14/2024 |
3.0.106 | 58 | 11/14/2024 |
3.0.105 | 65 | 11/14/2024 |
3.0.104 | 63 | 11/14/2024 |
3.0.103 | 65 | 11/14/2024 |
3.0.102 | 63 | 11/14/2024 |
3.0.101 | 58 | 11/14/2024 |
3.0.100 | 63 | 11/14/2024 |
3.0.99 | 63 | 11/14/2024 |
3.0.98 | 59 | 11/14/2024 |
3.0.97 | 59 | 11/14/2024 |
3.0.96 | 59 | 11/14/2024 |
3.0.95 | 64 | 11/14/2024 |
3.0.94 | 62 | 11/14/2024 |
3.0.93 | 63 | 11/14/2024 |
3.0.92 | 59 | 11/14/2024 |
3.0.91 | 66 | 11/14/2024 |
3.0.90 | 58 | 11/14/2024 |
3.0.89 | 60 | 11/14/2024 |
2.1.88 | 62 | 11/13/2024 |
2.1.87 | 61 | 11/13/2024 |
2.1.86 | 58 | 11/13/2024 |
2.1.85 | 58 | 11/13/2024 |
2.1.84 | 60 | 11/13/2024 |
2.1.83 | 59 | 11/13/2024 |
2.1.82 | 60 | 11/13/2024 |
2.1.81 | 58 | 11/13/2024 |
2.1.80 | 57 | 11/13/2024 |
2.1.79 | 61 | 11/13/2024 |
2.1.78 | 58 | 11/13/2024 |
2.1.77 | 72 | 11/13/2024 |
2.1.76 | 58 | 11/13/2024 |
2.1.75 | 64 | 11/13/2024 |
2.1.74 | 66 | 11/13/2024 |
2.1.73 | 63 | 11/13/2024 |
2.1.72 | 61 | 11/12/2024 |
2.1.71 | 57 | 11/12/2024 |
2.1.70 | 62 | 11/12/2024 |
2.1.69 | 60 | 11/12/2024 |
2.1.68 | 61 | 11/12/2024 |
2.1.67 | 66 | 11/9/2024 |
2.1.66 | 62 | 11/9/2024 |
2.1.65 | 70 | 11/9/2024 |
2.1.64 | 69 | 11/9/2024 |
2.1.63 | 67 | 11/9/2024 |
2.1.62 | 70 | 11/9/2024 |
2.1.61 | 70 | 11/9/2024 |
2.1.60 | 67 | 11/9/2024 |
2.1.59 | 74 | 11/9/2024 |
2.1.58 | 67 | 11/9/2024 |
2.1.57 | 70 | 11/9/2024 |
2.1.56 | 65 | 11/9/2024 |
2.1.55 | 64 | 11/9/2024 |
2.1.54 | 69 | 11/9/2024 |
2.1.53 | 66 | 11/8/2024 |
2.1.52 | 60 | 11/8/2024 |
2.1.51 | 66 | 11/8/2024 |
2.1.50 | 69 | 11/8/2024 |
2.1.49 | 66 | 11/8/2024 |
2.1.48 | 73 | 11/8/2024 |
2.1.47 | 64 | 11/8/2024 |
2.1.46 | 66 | 11/8/2024 |
2.1.45 | 64 | 11/8/2024 |
2.1.44 | 68 | 11/8/2024 |
2.1.43 | 66 | 11/8/2024 |
2.1.42 | 66 | 11/8/2024 |
2.1.41 | 64 | 11/8/2024 |
2.1.40 | 64 | 11/6/2024 |
2.1.39 | 62 | 11/6/2024 |
2.1.38 | 68 | 11/6/2024 |
2.1.37 | 60 | 11/6/2024 |
2.1.36 | 71 | 11/5/2024 |
2.1.35 | 70 | 11/1/2024 |
2.1.34 | 66 | 11/1/2024 |
2.1.33 | 61 | 11/1/2024 |
2.1.32 | 56 | 11/1/2024 |
2.1.31 | 60 | 11/1/2024 |
2.1.30 | 63 | 11/1/2024 |
2.1.29 | 57 | 11/1/2024 |
2.1.28 | 61 | 11/1/2024 |
2.1.27 | 64 | 11/1/2024 |
2.1.26 | 58 | 11/1/2024 |
2.1.25 | 59 | 11/1/2024 |
2.1.24 | 71 | 10/29/2024 |
2.1.23 | 66 | 10/29/2024 |
2.1.22 | 66 | 10/29/2024 |
2.1.21 | 65 | 10/29/2024 |
2.1.20 | 67 | 10/29/2024 |
2.1.18 | 72 | 10/29/2024 |
2.1.17 | 66 | 10/29/2024 |
2.1.16 | 67 | 10/29/2024 |
2.1.15 | 66 | 10/29/2024 |
2.1.14 | 69 | 10/29/2024 |
2.1.13 | 67 | 10/29/2024 |
2.1.12 | 66 | 10/29/2024 |
2.1.11 | 67 | 10/29/2024 |
2.1.10 | 67 | 10/29/2024 |
2.1.9 | 63 | 10/29/2024 |
2.1.8 | 61 | 10/29/2024 |
2.1.7 | 70 | 10/28/2024 |
2.1.6 | 66 | 10/28/2024 |
2.1.5 | 69 | 10/28/2024 |
2.1.4 | 81 | 10/27/2024 |
2.1.3 | 74 | 10/27/2024 |
2.1.2 | 71 | 10/27/2024 |
2.1.1 | 67 | 10/26/2024 |