ImportFromArchive() public method

public ImportFromArchive ( IAbsoluteFilePath file ) : void
file IAbsoluteFilePath
return void
Esempio n. 1
0
        public ArchiveContent CreateFromExisting(string name, string destination, IAbsoluteFilePath file,
                                                 IFileDownloader downloader)
        {
            var ac = new ArchiveContent(name, destination, downloader);

            ac.ImportFromArchive(file);
            return(ac);
        }
Esempio n. 2
0
        public ArchiveContent CreateFromExisting(IAbsoluteDirectoryPath destination, IAbsoluteFilePath file,
                                                 IFileDownloader downloader)
        {
            var name = GetName(file.ToString());

            var ac = new ArchiveContent(name, destination.ToString(), downloader);

            ac.ImportFromArchive(file);
            return(ac);
        }
        public ArchiveContent CreateFromExisting(IAbsoluteDirectoryPath destination, IAbsoluteFilePath file,
            IFileDownloader downloader) {
            var name = GetName(file.ToString());

            var ac = new ArchiveContent(name, destination.ToString(), downloader);
            ac.ImportFromArchive(file);
            return ac;
        }
 public ArchiveContent CreateFromExisting(string name, string destination, IAbsoluteFilePath file,
     IFileDownloader downloader) {
     var ac = new ArchiveContent(name, destination, downloader);
     ac.ImportFromArchive(file);
     return ac;
 }