상속: BaseContentInstallator
예제 #1
0
        public static async Task <IAdditionalContentInstallator> Create(string filename)
        {
            var result = new ZipContentInstallator(filename);
            await result.CreateExtractorAsync();

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