Table of Contents

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 HttpClient

HttpClient object used to download the data.

requestUrl string

Url to download from.

destination Stream

Destination stream.

progress IProgress<float>

Progress notification provider. Optional.

cancellationToken CancellationToken

Cancellation Token. Optional.

Returns

Task