Example #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;
        }
Example #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;
        }
Example #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;
 }
Example #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;
 }