Skip to content

Commit

Permalink
updated sample projects
Browse files Browse the repository at this point in the history
  • Loading branch information
bezzad committed Jan 2, 2024
1 parent 54f0003 commit 86e3645
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Samples/Downloader.Sample/Downloader.Sample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</ItemGroup>

<ItemGroup>
<None Update="DownloadList.json">
<None Update="download.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions src/Samples/Downloader.Sample/Program.Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ private static DownloadConfiguration GetDownloadConfiguration()
return new DownloadConfiguration {
BufferBlockSize = 10240, // usually, hosts support max to 8000 bytes, default values is 8000
ChunkCount = 8, // file parts to download, default value is 1
MaximumBytesPerSecond = 0, // download speed limited to 10MB/s, default values is zero or unlimited
MaximumBytesPerSecond = 1024 * 1024 * 10, // download speed limited to 10MB/s, default values is zero or unlimited
MaxTryAgainOnFailover = 5, // the maximum number of times to fail
MaximumMemoryBufferBytes = 1024 * 1024 * 200, // release memory buffer after each 200MB
ParallelDownload = true, // download parts of file as parallel or not. Default value is false
Expand All @@ -24,7 +24,7 @@ private static DownloadConfiguration GetDownloadConfiguration()
RangeHigh = 0, // ceiling offset of download range of a large file
ClearPackageOnCompletionWithFailure = true, // Clear package and downloaded data when download completed with failure, default value is false
MinimumSizeOfChunking = 1024, // minimum size of chunking to download a file in multiple parts, default value is 512
ReserveStorageSpaceBeforeStartingDownload = true, // Before starting the download, reserve the storage space of the file as file size, default value is false
ReserveStorageSpaceBeforeStartingDownload = false, // Before starting the download, reserve the storage space of the file as file size, default value is false
RequestConfiguration =
{
// config and customize request headers
Expand Down
2 changes: 1 addition & 1 deletion src/Samples/Downloader.Sample/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace Downloader.Sample;

public partial class Program
{
private const string DownloadListFile = "DownloadList.json";
private const string DownloadListFile = "download.json";
private static List<DownloadItem> DownloadList;
private static ProgressBar ConsoleProgress;
private static ConcurrentDictionary<string, ChildProgressBar> ChildConsoleProgresses;
Expand Down
File renamed without changes.

0 comments on commit 86e3645

Please sign in to comment.