Method DownloadDataAsync
- Namespace
- Alternet.UI.Extensions
- Assembly
- Alternet.UI.Interfaces.dll
DownloadDataAsync(HttpClient, string, Stream, IProgress<float>?, CancellationToken)
Downloads data async.
public static Task DownloadDataAsync(this HttpClient client, string requestUrl, Stream destination, IProgress<float>? progress = null, CancellationToken cancellationToken = default)
Parameters
client
HttpClientHttpClient object used to download the data.
requestUrl
stringUrl to download from.
destination
StreamDestination stream.
progress
IProgress<float>Progress notification provider. Optional.
cancellationToken
CancellationTokenCancellation Token. Optional.