Click or drag to resize

IDownloadService Methods

The IDownloadService type exposes the following members.

Methods
 NameDescription
Public methodAddLogger Add logger class to log the Downloader events
Public methodCancelAsync Cancels the current download operation asynchronously.
Public methodCancelTaskAsync Cancels the current download operation asynchronously and returns a Task object that represents the cancellation operation.
Public methodClear Clears any data related to the current download operation.
Public methodDownloadFileTaskAsync(DownloadPackage, CancellationToken) Asynchronously resume downloads a file and returns a Stream object that contains the downloaded file data.
Public methodDownloadFileTaskAsync(String, CancellationToken) Asynchronously downloads a file from the specified URL and returns a Stream object that contains the downloaded file data.
Public methodDownloadFileTaskAsync(String, CancellationToken) Asynchronously downloads a file from the specified URL and returns a Stream object that contains the downloaded file data.
Public methodDownloadFileTaskAsync(DownloadPackage, String, CancellationToken) Asynchronously resume downloads a file from the specified URL and returns a Stream object that contains the downloaded file data.
Public methodDownloadFileTaskAsync(DownloadPackage, String, CancellationToken) Asynchronously resume downloads a file from the specified URL and returns a Stream object that contains the downloaded file data.
Public methodDownloadFileTaskAsync(String, DirectoryInfo, CancellationToken) Asynchronously downloads a file from the specified URL and saves it to the specified directory.
Public methodDownloadFileTaskAsync(String, String, CancellationToken) Asynchronously downloads a file from the specified URL and saves it to the specified file name.
Public methodDownloadFileTaskAsync(String, DirectoryInfo, CancellationToken) Asynchronously downloads a file from the specified URL and saves it to the specified directory.
Public methodDownloadFileTaskAsync(String, String, CancellationToken) Asynchronously downloads a file from the specified URL and saves it to the specified file name.
Public methodPause Pauses the current download operation. In this way, you can resume the download very quickly.
Public methodResume Resumes a paused download operation.
Top
See Also