IDownloadServiceDownloadFileTaskAsync(DownloadPackage, CancellationToken) Method |
Asynchronously resume downloads a file and returns a Stream object that contains the downloaded file data.
Namespace: DownloaderAssembly: NeoAxis.Core.Editor (in NeoAxis.Core.Editor.dll) Version: 2026.1.1.0 (2026.1.1.0)
SyntaxTask<Stream> DownloadFileTaskAsync(
DownloadPackage package,
CancellationToken cancellationToken = default
)
Parameters
- package DownloadPackage
- The DownloadPackage object that contains information about the file to download.
- cancellationToken CancellationToken (Optional)
- A cancellation token that can be used to cancel the download operation.
Return Value
TaskStreamA Task object that represents the asynchronous download operation.
See Also