Table of Contents

TryDownloadPackageFileAsync Method

TryDownloadPackageFileAsync(string, CancellationToken)

public ValueTask<string?> TryDownloadPackageFileAsync(string url, CancellationToken cancellationToken = default)

Parameters

url string
cancellationToken CancellationToken

Returns

ValueTask<string>

null if failed to download otherwise file path to downloaded content.