An open API service indexing awesome lists of open source software.

https://github.com/omansak/uwp-download-in-chunks

Universal Windows Platform (UWP) Download File in Chunks
https://github.com/omansak/uwp-download-in-chunks

chunk http-client uwp

Last synced: 22 days ago
JSON representation

Universal Windows Platform (UWP) Download File in Chunks

Awesome Lists containing this project

README

        

# UWP-Download-in-Chunks

It offers to save large files from bandwidth limited servers such as Google Drive, Yandex Disk,YouTube etc.

## Features

Read Async
Write Async
Download File In Chunks Async
UWP / C#

## Usage

```c#
new TransferOperation().CreateDownload(
Uri uri*,
StorageFile file*,
CancellationToken token*,
IProgress progress*,
chunkSize: 10_485_760)
```

## Progress
```c#
if (progress.TotalBytes > 0){
long percent = (progress.ReceiveBytes * 100 / progress.TotalBytes);
string text = string.Format(" ( % {0} ) {1} / {2} MB ",
percent,
(progress.ReceiveBytes / (double)(1024 * 1024)).ToString("N"),
(progress.TotalBytes / (double)(1024 * 1024)).ToString("N"));
}
```