C# Class Microsoft.OfficeProPlus.Downloader.FileDownloader

Datei anzeigen Open project: OfficeDev/Office-IT-Pro-Deployment-Scripts Class Usage Examples

Public Methods

Method Description
DownloadAsync ( string url, string filePath, CancellationToken token = newCancellationToken() ) : Task
GetFileSizeAsync ( string url ) : Task

Private Methods

Method Description
client_DownloadFileCompleted ( object sender, AsyncCompletedEventArgs e ) : void
client_DownloadProgressChanged ( object sender, DownloadProgressChangedEventArgs e ) : void

Method Details

DownloadAsync() public method

public DownloadAsync ( string url, string filePath, CancellationToken token = newCancellationToken() ) : Task
url string
filePath string
token System.Threading.CancellationToken
return Task

GetFileSizeAsync() public method

public GetFileSizeAsync ( string url ) : Task
url string
return Task