Soenneker.Utils.File.Download
4.0.1412
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 4.0.1412
NuGet\Install-Package Soenneker.Utils.File.Download -Version 4.0.1412
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="4.0.1412" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Utils.File.Download" Version="4.0.1412" />
<PackageReference Include="Soenneker.Utils.File.Download" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Utils.File.Download --version 4.0.1412
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.Utils.File.Download, 4.0.1412"
#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.
#:package Soenneker.Utils.File.Download@4.0.1412
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Utils.File.Download&version=4.0.1412
#tool nuget:?package=Soenneker.Utils.File.Download&version=4.0.1412
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
IFileDownloadUtilwithin 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 | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Polly (>= 8.6.5)
- Soenneker.Utils.File (>= 4.0.2058)
- Soenneker.Utils.HttpClientCache (>= 4.0.1843)
- Soenneker.Utils.Path (>= 4.0.1073)
- System.Threading.RateLimiting (>= 10.0.2)
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 |
|---|---|---|
| 4.0.1454 | 0 | 2/28/2026 |
| 4.0.1453 | 0 | 2/28/2026 |
| 4.0.1452 | 0 | 2/28/2026 |
| 4.0.1451 | 0 | 2/28/2026 |
| 4.0.1450 | 0 | 2/28/2026 |
| 4.0.1449 | 0 | 2/27/2026 |
| 4.0.1448 | 16 | 2/27/2026 |
| 4.0.1447 | 185 | 2/27/2026 |
| 4.0.1446 | 105 | 2/27/2026 |
| 4.0.1445 | 46 | 2/27/2026 |
| 4.0.1444 | 104 | 2/27/2026 |
| 4.0.1443 | 63 | 2/27/2026 |
| 4.0.1442 | 149 | 2/27/2026 |
| 4.0.1441 | 78 | 2/26/2026 |
| 4.0.1440 | 93 | 2/26/2026 |
| 4.0.1439 | 426 | 2/26/2026 |
| 4.0.1438 | 495 | 2/23/2026 |
| 4.0.1437 | 123 | 2/23/2026 |
| 4.0.1436 | 122 | 2/22/2026 |
| 4.0.1412 | 102 | 2/10/2026 |
Loading failed