Click or drag to resize

IDownloadServiceDownloadFileTaskAsync(String, CancellationToken) Method

Asynchronously 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(
	string address,
	CancellationToken cancellationToken = default
)

Parameters

address  String
The download URL of the file to download.
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