Click or drag to resize

IDownloadServiceDownloadFileTaskAsync(String, DirectoryInfo, CancellationToken) Method

Asynchronously downloads a file from the specified URL and saves it to the specified directory.

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

Parameters

urls  String
The download URLs of a file to download as parallel with mirror links.
folder  DirectoryInfo
The local directory to save the downloaded file in.
cancellationToken  CancellationToken  (Optional)
A cancellation token that can be used to cancel the download operation.

Return Value

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