public static async Task <IAdditionalContentInstallator> Create(string filename) { var result = new ZipContentInstallator(filename); await result.CreateExtractorAsync(); return(result); }
public static Task <IAdditionalContentInstallator> FromFile(string filename) { return(FileUtils.IsDirectory(filename) ? DirectoryContentInstallator.Create(filename) : IsZipArchive(filename) ? ZipContentInstallator.Create(filename) : SharpCompressContentInstallator.Create(filename)); }
public static async Task<IAdditionalContentInstallator> Create(string filename) { var result = new ZipContentInstallator(filename); await result.CreateExtractorAsync(); return result; }