OctaneEngineCore 6.0.4
See the version list below for details.
dotnet add package OctaneEngineCore --version 6.0.4
NuGet\Install-Package OctaneEngineCore -Version 6.0.4
<PackageReference Include="OctaneEngineCore" Version="6.0.4" />
paket add OctaneEngineCore --version 6.0.4
#r "nuget: OctaneEngineCore, 6.0.4"
// Install OctaneEngineCore as a Cake Addin #addin nuget:?package=OctaneEngineCore&version=6.0.4 // Install OctaneEngineCore as a Cake Tool #tool nuget:?package=OctaneEngineCore&version=6.0.4
A high Performance C# file downloader that asyncrounously downloads files as pieces. Made as a faster, more efficent replacement to Microsoft's WebClient.Want to see the library in action? Check out Octane YouTube Extractor
Installation
dotnet add package OctaneEngineCore
Features
- Multipart Downloading
- Download Retry
- Progress
- Throttling
- Logging
- Proxy Support
- Pause/Resume Support
Usage
var config = new OctaneConfiguration
{
Parts = 2,
BufferSize = 8192,
ShowProgress = false,
BytesPerSecond = 1,
UseProxy = false,
Proxy = null,
DoneCallback = x => {
Console.WriteLine("Done!");
},
ProgressCallback = x => {
Console.WriteLine(x.ToString(CultureInfo.InvariantCulture));
},
NumRetries = 10
};
//Pick any logging implementation you want, here we are using Serilog
var seriLog = new LoggerConfiguration()
.Enrich.FromLogContext()
.MinimumLevel.Verbose()
.WriteTo.File("./OctaneLog.txt")
.WriteTo.Console(theme: AnsiConsoleTheme.Sixteen)
.CreateLogger();
var factory = LoggerFactory.Create(logging => {
logging.AddSerilog(seriLog);
});
var pauseTokenSource = new PauseTokenSource(factory);
Engine.DownloadFile("https://www.google.com/images/branding/googlelogo/1x/googlelogo_light_color_272x92dp.png", factory, null, config, pauseTokenSource).Wait();
License
The MIT License (MIT)
Copyright (c) 2015 Greg James
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Contributors
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
.NET Framework | net461 is compatible. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 is compatible. net48 was computed. net481 was computed. |
-
.NETFramework 4.6.1
- AsyncEnumerator (>= 4.0.2)
- Microsoft.Extensions.Configuration (>= 8.0.0)
- Microsoft.Extensions.Configuration.Json (>= 8.0.0)
- Microsoft.Extensions.Logging (>= 8.0.0)
- PooledAwait (>= 1.0.49)
- System.Buffers (>= 4.5.1)
- System.Net.Http (>= 4.3.4)
- System.Reactive (>= 6.0.0)
- System.Runtime.InteropServices.RuntimeInformation (>= 4.3.0)
- System.Text.Encoding.CodePages (>= 8.0.0)
- System.ValueTuple (>= 4.5.0)
- ZString (>= 2.5.1)
-
.NETFramework 4.7.2
- AsyncEnumerator (>= 4.0.2)
- Microsoft.Extensions.Configuration (>= 8.0.0)
- Microsoft.Extensions.Configuration.Json (>= 8.0.0)
- Microsoft.Extensions.Logging (>= 8.0.0)
- PooledAwait (>= 1.0.49)
- System.Buffers (>= 4.5.1)
- System.Net.Http (>= 4.3.4)
- System.Reactive (>= 6.0.0)
- System.Runtime.InteropServices.RuntimeInformation (>= 4.3.0)
- System.Text.Encoding.CodePages (>= 8.0.0)
- System.ValueTuple (>= 4.5.0)
- ZString (>= 2.5.1)
-
net6.0
- Microsoft.Extensions.Configuration (>= 8.0.0)
- Microsoft.Extensions.Configuration.Json (>= 8.0.0)
- Microsoft.Extensions.Logging (>= 8.0.0)
- PooledAwait (>= 1.0.49)
- System.Reactive (>= 6.0.0)
- ZString (>= 2.5.1)
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 | |
---|---|---|---|
8.0.4 | 1,471 | 8/5/2024 | |
8.0.3 | 618 | 6/14/2024 | |
8.0.2 | 136 | 6/11/2024 | |
8.0.1 | 86 | 6/11/2024 | |
8.0.0 | 553 | 1/23/2024 | |
7.0.2 | 334 | 1/7/2024 | |
7.0.1 | 233 | 1/7/2024 | |
7.0.0 | 243 | 1/7/2024 | |
6.0.4 | 298 | 1/6/2024 | |
6.0.1 | 315 | 12/29/2023 | |
6.0.0 | 990 | 4/2/2023 | |
5.0.0 | 671 | 2/21/2023 | |
4.4.1 | 613 | 2/19/2023 | |
4.4.0 | 572 | 2/18/2023 | |
4.3.1 | 579 | 2/18/2023 | |
4.3.0 | 625 | 2/18/2023 | |
4.2.0 | 654 | 2/5/2023 | |
4.1.0 | 570 | 2/5/2023 | |
4.0.0 | 669 | 1/19/2023 | |
3.2.0 | 671 | 12/17/2022 | |
3.1.0 | 690 | 11/19/2022 | |
2.1.0 | 896 | 12/8/2021 | |
2.0.0 | 650 | 12/7/2021 | |
1.0.0 | 1,552 | 7/10/2020 |