Click or drag to resize

IDownloadServiceDownloadFileTaskAsync(DownloadPackage, String, CancellationToken) Method

Asynchronously resume downloads a file from the specified URL and returns a Stream object that contains the downloaded file data.

Namespace: Downloader
Assembly: NeoAxis.Core.Editor (in NeoAxis.Core.Editor.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntax
C#
Task<Stream> DownloadFileTaskAsync(
	DownloadPackage package,
	string[] urls,
	CancellationToken cancellationToken = default
)

Parameters

package  DownloadPackage
The DownloadPackage object that contains information about the file to download.
urls  String
The download URLs of a file to download as parallel with mirror links.
cancellationToken  CancellationToken  (Optional)
A cancellation token that can be used to cancel the download operation.

Return Value

TaskStream
A Task object that represents the asynchronous download operation.
See Also