Soenneker.Utils.File.Download 4.0.1430

Prefix Reserved
dotnet add package Soenneker.Utils.File.Download --version 4.0.1430
                    
NuGet\Install-Package Soenneker.Utils.File.Download -Version 4.0.1430
                    
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.1430" />
                    
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.1430" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Utils.File.Download" />
                    
Project file
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.1430
                    
#r "nuget: Soenneker.Utils.File.Download, 4.0.1430"
                    
#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.1430
                    
#: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.1430
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Utils.File.Download&version=4.0.1430
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image 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

  1. Register IFileDownloadUtil within DI (Program.cs).
public static async Task Main(string[] args)
{
    ...
    builder.Services.AddFileDownloadUtilAsScoped();
}
  1. 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 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.

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.1430 257 2/12/2026
4.0.1429 233 2/12/2026
4.0.1428 79 2/12/2026
4.0.1427 148 2/12/2026
4.0.1426 100 2/12/2026
4.0.1425 143 2/11/2026
4.0.1424 118 2/11/2026
4.0.1423 90 2/11/2026
4.0.1422 335 2/11/2026
4.0.1421 92 2/11/2026
4.0.1420 78 2/11/2026
4.0.1419 259 2/10/2026
4.0.1418 130 2/10/2026
4.0.1417 77 2/10/2026
4.0.1416 78 2/10/2026
4.0.1415 135 2/10/2026
4.0.1414 78 2/10/2026
4.0.1413 263 2/10/2026
4.0.1412 92 2/10/2026
4.0.1411 145 2/10/2026
Loading failed