Soenneker.Utils.File.Download 3.0.135

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.135                
NuGet\Install-Package Soenneker.Utils.File.Download -Version 3.0.135                
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.135" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Soenneker.Utils.File.Download --version 3.0.135                
#r "nuget: Soenneker.Utils.File.Download, 3.0.135"                
#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=3.0.135

// Install Soenneker.Utils.File.Download as a Cake Tool
#tool nuget:?package=Soenneker.Utils.File.Download&version=3.0.135                

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. 
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
3.0.168 33 11/21/2024
3.0.167 35 11/21/2024
3.0.166 31 11/21/2024
3.0.165 38 11/21/2024
3.0.164 36 11/21/2024
3.0.163 36 11/21/2024
3.0.162 35 11/21/2024
3.0.161 31 11/21/2024
3.0.160 33 11/21/2024
3.0.159 32 11/20/2024
3.0.158 39 11/20/2024
3.0.157 37 11/20/2024
3.0.156 34 11/20/2024
3.0.155 33 11/20/2024
3.0.154 40 11/20/2024
3.0.153 35 11/20/2024
3.0.152 40 11/20/2024
3.0.151 34 11/20/2024
3.0.150 34 11/20/2024
3.0.149 32 11/20/2024
3.0.148 34 11/20/2024
3.0.147 32 11/20/2024
3.0.146 32 11/20/2024
3.0.145 32 11/20/2024
3.0.144 32 11/20/2024
3.0.143 32 11/20/2024
3.0.142 33 11/20/2024
3.0.141 35 11/20/2024
3.0.140 35 11/19/2024
3.0.139 34 11/19/2024
3.0.138 35 11/19/2024
3.0.137 34 11/19/2024
3.0.136 36 11/19/2024
3.0.135 33 11/19/2024
3.0.134 35 11/19/2024
3.0.133 34 11/19/2024
3.0.132 33 11/19/2024
3.0.131 35 11/19/2024
3.0.130 33 11/19/2024
3.0.129 37 11/19/2024
3.0.128 30 11/19/2024
3.0.127 33 11/19/2024
3.0.126 32 11/19/2024
3.0.125 67 11/15/2024
3.0.124 62 11/15/2024
3.0.123 67 11/15/2024
3.0.122 63 11/15/2024
3.0.121 60 11/15/2024
3.0.120 65 11/14/2024
3.0.119 66 11/14/2024
3.0.118 66 11/14/2024
3.0.117 71 11/14/2024
3.0.116 68 11/14/2024
3.0.115 71 11/14/2024
3.0.113 69 11/14/2024
3.0.112 63 11/14/2024
3.0.111 67 11/14/2024
3.0.110 65 11/14/2024
3.0.109 63 11/14/2024
3.0.108 63 11/14/2024
3.0.107 76 11/14/2024
3.0.106 62 11/14/2024
3.0.105 69 11/14/2024
3.0.104 68 11/14/2024
3.0.103 69 11/14/2024
3.0.102 67 11/14/2024
3.0.101 62 11/14/2024
3.0.100 67 11/14/2024
3.0.99 67 11/14/2024
3.0.98 63 11/14/2024
3.0.97 63 11/14/2024
3.0.96 63 11/14/2024
3.0.95 69 11/14/2024
3.0.94 66 11/14/2024
3.0.93 67 11/14/2024
3.0.92 63 11/14/2024
3.0.91 71 11/14/2024
3.0.90 63 11/14/2024
3.0.89 64 11/14/2024
2.1.88 66 11/13/2024
2.1.87 65 11/13/2024
2.1.86 62 11/13/2024
2.1.85 62 11/13/2024
2.1.84 64 11/13/2024
2.1.83 63 11/13/2024
2.1.82 64 11/13/2024
2.1.81 63 11/13/2024
2.1.80 61 11/13/2024
2.1.79 65 11/13/2024
2.1.78 63 11/13/2024
2.1.77 77 11/13/2024
2.1.76 62 11/13/2024
2.1.75 68 11/13/2024
2.1.74 70 11/13/2024
2.1.73 67 11/13/2024
2.1.72 66 11/12/2024
2.1.71 61 11/12/2024
2.1.70 66 11/12/2024
2.1.69 64 11/12/2024
2.1.68 65 11/12/2024
2.1.67 71 11/9/2024
2.1.66 68 11/9/2024
2.1.65 77 11/9/2024
2.1.64 74 11/9/2024
2.1.63 73 11/9/2024
2.1.62 77 11/9/2024
2.1.61 77 11/9/2024
2.1.60 72 11/9/2024
2.1.59 80 11/9/2024
2.1.58 72 11/9/2024
2.1.57 76 11/9/2024
2.1.56 71 11/9/2024
2.1.55 70 11/9/2024
2.1.54 75 11/9/2024
2.1.53 72 11/8/2024
2.1.52 66 11/8/2024
2.1.51 71 11/8/2024
2.1.50 76 11/8/2024
2.1.49 73 11/8/2024
2.1.48 79 11/8/2024
2.1.47 70 11/8/2024
2.1.46 73 11/8/2024
2.1.45 70 11/8/2024
2.1.44 74 11/8/2024
2.1.43 71 11/8/2024
2.1.42 72 11/8/2024
2.1.41 69 11/8/2024
2.1.40 69 11/6/2024
2.1.39 68 11/6/2024
2.1.38 74 11/6/2024
2.1.37 66 11/6/2024
2.1.36 77 11/5/2024
2.1.35 77 11/1/2024
2.1.34 73 11/1/2024
2.1.33 68 11/1/2024
2.1.32 63 11/1/2024
2.1.31 66 11/1/2024
2.1.30 69 11/1/2024
2.1.29 63 11/1/2024
2.1.28 66 11/1/2024
2.1.27 70 11/1/2024
2.1.26 64 11/1/2024
2.1.25 65 11/1/2024
2.1.24 75 10/29/2024
2.1.23 70 10/29/2024
2.1.22 70 10/29/2024
2.1.21 69 10/29/2024
2.1.20 71 10/29/2024
2.1.18 77 10/29/2024
2.1.17 70 10/29/2024
2.1.16 71 10/29/2024
2.1.15 71 10/29/2024
2.1.14 73 10/29/2024
2.1.13 71 10/29/2024
2.1.12 70 10/29/2024
2.1.11 71 10/29/2024
2.1.10 71 10/29/2024
2.1.9 67 10/29/2024
2.1.8 65 10/29/2024
2.1.7 74 10/28/2024
2.1.6 70 10/28/2024
2.1.5 73 10/28/2024
2.1.4 85 10/27/2024
2.1.3 79 10/27/2024
2.1.2 75 10/27/2024
2.1.1 70 10/26/2024