AcManager.Tools.Helpers.Loaders.FlexibleLoader.LoadAsync C# (CSharp) Метод

LoadAsync() публичный статический Метод

public static LoadAsync ( string argument, string name = null, string extension = null, IProgress progress = null, CancellationToken cancellation = default(CancellationToken) ) : Task
argument string
name string
extension string
progress IProgress
cancellation System.Threading.CancellationToken
Результат 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);
        }