IDownloadService Interface |
Namespace: DownloaderAssembly: NeoAxis.Core.Editor (in NeoAxis.Core.Editor.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntaxpublic interface IDownloadService
The IDownloadService type exposes the following members.
Properties| | Name | Description |
|---|
 | IsBusy |
Gets a value indicating whether the download operation is currently in progress.
|
 | IsCancelled |
Gets a value indicating whether the download operation has been cancelled.
|
 | Package |
Gets the DownloadPackage object that contains information about the file to download.
|
 | Status |
Gets the current status of the download operation as a DownloadStatus enum value.
|
Top
Methods| | Name | Description |
|---|
 | AddLogger |
Add logger class to log the Downloader events
|
 | CancelAsync |
Cancels the current download operation asynchronously.
|
 | CancelTaskAsync |
Cancels the current download operation asynchronously and returns a Task object that represents the cancellation operation.
|
 | Clear |
Clears any data related to the current download operation.
|
 | DownloadFileTaskAsync(DownloadPackage, CancellationToken) |
Asynchronously resume downloads a file and returns a Stream object that contains the downloaded file data.
|
 | DownloadFileTaskAsync(String, CancellationToken) |
Asynchronously downloads a file from the specified URL and returns a Stream object that contains the downloaded file data.
|
 | DownloadFileTaskAsync(String, CancellationToken) |
Asynchronously downloads a file from the specified URL and returns a Stream object that contains the downloaded file data.
|
 | DownloadFileTaskAsync(DownloadPackage, String, CancellationToken) |
Asynchronously resume downloads a file from the specified URL and returns a Stream object that contains the downloaded file data.
|
 | DownloadFileTaskAsync(DownloadPackage, String, CancellationToken) |
Asynchronously resume downloads a file from the specified URL and returns a Stream object that contains the downloaded file data.
|
 | DownloadFileTaskAsync(String, DirectoryInfo, CancellationToken) |
Asynchronously downloads a file from the specified URL and saves it to the specified directory.
|
 | DownloadFileTaskAsync(String, String, CancellationToken) |
Asynchronously downloads a file from the specified URL and saves it to the specified file name.
|
 | DownloadFileTaskAsync(String, DirectoryInfo, CancellationToken) |
Asynchronously downloads a file from the specified URL and saves it to the specified directory.
|
 | DownloadFileTaskAsync(String, String, CancellationToken) |
Asynchronously downloads a file from the specified URL and saves it to the specified file name.
|
 | Pause |
Pauses the current download operation. In this way, you can resume the download very quickly.
|
 | Resume |
Resumes a paused download operation.
|
Top
Events| | Name | Description |
|---|
 | ChunkDownloadProgressChanged |
Event that is raised periodically during the download operation to report the progress of a single chunk download.
The event handler is passed a DownloadProgressChangedEventArgs object that contains
information about the progress of the chunk download, such as the number of bytes downloaded and the total chunk size.
|
 | DownloadFileCompleted |
Event that is raised when the download operation is completed.
The event handler is passed an AsyncCompletedEventArgs object that contains
information about the completion status of the operation.
|
 | DownloadProgressChanged |
Event that is raised periodically during the download operation to report the progress of the download.
The event handler is passed a DownloadProgressChangedEventArgs object that contains
information about the progress of the download, such as the number of bytes downloaded and the total file size.
|
 | DownloadStarted |
Event that is raised when the download operation starts.
The event handler is passed a DownloadStartedEventArgs object that contains
information about the download operation, such as the download URL and the local file path.
|
Top
See Also