Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 853 Bytes

HttpDownloadAsync.md

File metadata and controls

26 lines (18 loc) · 853 Bytes

IPublicAPI.HttpDownloadAsync method

Download the specific url to a cretain file path

public Task HttpDownloadAsync(string url, string filePath, Action<double> reportProgress = null, 
    CancellationToken token = default)
parameter description
url URL to download file
filePath path to save downloaded file
reportProgress Action to report progress. The input of the action is the progress value which is a double value between 0 and 100. It will be called if url support range request and the reportProgress is not null.
token place to store file

Return Value

Task showing the progress

See Also