ModelScopeDownloadDownloadFileAsync Method

Main download method (interface implementation) Execution flow: 1. Create temporary working directory 2. Parse model URL to retrieve commitId 3. Start external process for download 4. Move files to final location 5. Handle exceptions and clean up resources

Definition

Namespace: SuperBuilderWinService.ProvidersImpl
Assembly: IntelAiaService (in IntelAiaService.exe) Version: 1.0.0+2093811f3bac5da092b5ce9c8172233582eee4d5
C#
public Task<string> DownloadFileAsync(
	string url,
	string outputFilePath,
	IProgress<int>? progress,
	string? tokenId
)

Parameters

url  String

[Missing <param name="url"/> documentation for "M:SuperBuilderWinService.ProvidersImpl.ModelScopeDownload.DownloadFileAsync(System.String,System.String,System.IProgress{System.Int32},System.String)"]

outputFilePath  String

[Missing <param name="outputFilePath"/> documentation for "M:SuperBuilderWinService.ProvidersImpl.ModelScopeDownload.DownloadFileAsync(System.String,System.String,System.IProgress{System.Int32},System.String)"]

progress  IProgressInt32

[Missing <param name="progress"/> documentation for "M:SuperBuilderWinService.ProvidersImpl.ModelScopeDownload.DownloadFileAsync(System.String,System.String,System.IProgress{System.Int32},System.String)"]

tokenId  String

[Missing <param name="tokenId"/> documentation for "M:SuperBuilderWinService.ProvidersImpl.ModelScopeDownload.DownloadFileAsync(System.String,System.String,System.IProgress{System.Int32},System.String)"]

Return Value

TaskString

[Missing <returns> documentation for "M:SuperBuilderWinService.ProvidersImpl.ModelScopeDownload.DownloadFileAsync(System.String,System.String,System.IProgress{System.Int32},System.String)"]

Implements

IDownloadDownloadFileAsync(String, String, IProgressInt32, String)

See Also