Soenneker.Utils.File.Download 3.0.830

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Utils.File.Download --version 3.0.830
                    
NuGet\Install-Package Soenneker.Utils.File.Download -Version 3.0.830
                    
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="3.0.830" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Utils.File.Download" Version="3.0.830" />
                    
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 3.0.830
                    
#r "nuget: Soenneker.Utils.File.Download, 3.0.830"
                    
#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@3.0.830
                    
#: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=3.0.830
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Utils.File.Download&version=3.0.830
                    
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 net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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 (3)

Showing the top 3 NuGet packages that depend on Soenneker.Utils.File.Download:

Package Downloads
Soenneker.Coinbase.Runners.OpenApiClients.Cdp

This runner executes a GitHub action that updates another project. It's not meant for consumption.

Soenneker.HighLevel.Runners.OpenApiClient

Automatically updates the Soenneker.HighLevel.OpenApiClient package

Soenneker.HubSpot.Runners.OpenApiClient

This runner executes a GitHub action that updates another project. It's not meant for consumption.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.1564 4 4/21/2026
4.0.1563 35 4/21/2026
4.0.1562 158 4/21/2026
4.0.1561 1,703 4/15/2026
4.0.1560 233 4/15/2026
4.0.1559 179 4/15/2026
4.0.1557 441 4/14/2026
4.0.1556 202 4/14/2026
4.0.1555 677 4/14/2026
4.0.1553 183 4/14/2026
4.0.1551 4,228 4/6/2026
4.0.1550 1,290 4/3/2026
4.0.1549 1,327 4/1/2026
4.0.1548 165 3/31/2026
4.0.1547 215 3/31/2026
4.0.1546 438 3/31/2026
4.0.1545 2,383 3/24/2026
4.0.1544 453 3/23/2026
4.0.1543 611 3/20/2026
3.0.830 200 2/11/2025
Loading failed