示例#1
0
        public ArchiveContent CreateFromDownload(string destination, string url, IFileDownloader downloader) {
            var name = GetName(url.Split('/').Last());

            var ac = new ArchiveContent(name, destination, downloader);
            ac.ImportFromDownload(url);
            return ac;
        }
示例#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;
        }
示例#3
0
 public ArchiveContent CreateFromDownload(string name, string destination, string url, IFileDownloader downloader) {
     var ac = new ArchiveContent(name, destination, downloader);
     ac.ImportFromDownload(url);
     return ac;
 }
示例#4
0
 public ArchiveContent CreateFromExisting(string name, string destination, IAbsoluteFilePath file,
     IFileDownloader downloader) {
     var ac = new ArchiveContent(name, destination, downloader);
     ac.ImportFromArchive(file);
     return ac;
 }