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
- Host: GitHub
- URL: https://github.com/omansak/uwp-download-in-chunks
- Owner: omansak
- Created: 2018-10-05T13:23:07.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-05T13:44:34.000Z (over 6 years ago)
- Last Synced: 2025-03-27T06:44:55.885Z (about 1 month ago)
- Topics: chunk, http-client, uwp
- Language: C#
- Size: 30.3 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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"));
}
```