Soenneker.Utils.File.Download 2.1.46

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 2.1.46                
NuGet\Install-Package Soenneker.Utils.File.Download -Version 2.1.46                
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.46" />                
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.46                
#r "nuget: Soenneker.Utils.File.Download, 2.1.46"                
#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.46

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

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 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.

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 68 11/21/2024
3.0.167 70 11/21/2024
3.0.166 59 11/21/2024
3.0.165 68 11/21/2024
3.0.164 67 11/21/2024
3.0.163 68 11/21/2024
3.0.162 71 11/21/2024
3.0.161 64 11/21/2024
3.0.160 66 11/21/2024
3.0.159 62 11/20/2024
3.0.158 77 11/20/2024
3.0.157 72 11/20/2024
3.0.156 69 11/20/2024
3.0.155 67 11/20/2024
3.0.154 73 11/20/2024
3.0.153 66 11/20/2024
3.0.152 73 11/20/2024
3.0.151 64 11/20/2024
3.0.150 74 11/20/2024
3.0.149 66 11/20/2024
3.0.148 69 11/20/2024
3.0.147 70 11/20/2024
3.0.146 63 11/20/2024
3.0.145 65 11/20/2024
3.0.144 68 11/20/2024
3.0.143 69 11/20/2024
3.0.142 72 11/20/2024
3.0.141 70 11/20/2024
3.0.140 68 11/19/2024
3.0.139 70 11/19/2024
3.0.138 67 11/19/2024
3.0.137 69 11/19/2024
3.0.136 66 11/19/2024
3.0.135 66 11/19/2024
3.0.134 64 11/19/2024
3.0.133 65 11/19/2024
3.0.132 58 11/19/2024
3.0.131 65 11/19/2024
3.0.130 59 11/19/2024
3.0.129 66 11/19/2024
3.0.128 57 11/19/2024
3.0.127 67 11/19/2024
3.0.126 59 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 70 11/12/2024
2.1.69 68 11/12/2024
2.1.68 69 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 68 10/29/2024
2.1.8 66 10/29/2024
2.1.7 75 10/28/2024
2.1.6 71 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