public static LoadAsync ( string argument, string name = null, string extension = null, IProgress |
||
argument | string | |
name | string | |
extension | string | |
progress | IProgress |
|
cancellation | ||
Résultat | Task |
public static Task<string> LoadAsync(string argument, string name = null, string extension = null, IProgress<AsyncProgressEntry> progress = null,
CancellationToken cancellation = default(CancellationToken)) {
var tmp = name == null
? extension == null ? Path.GetTempFileName() : FileUtils.GetTempFileName(Path.GetTempPath(), extension)
: FileUtils.GetTempFileNameFixed(Path.GetTempPath(), name);
return LoadAsyncTo(argument, tmp, progress, cancellation);
}