public override IList<AsimovVersion> GetAvailableVersions(PackageInfo packageInfo)
        {
            var versions = new List<AsimovVersion>();

            CollectZipFiles(versions, Uri.LocalPath, 1);

            return versions.OrderByDescending(x => x.Timestamp).ToList();
        }
        public override string CopyAndExtractToTempFolder(string versionId, PackageInfo packageInfo, string tempFolder)
        {
            var fileInfo = GetFilePathForVersion(versionId);
            var localZipFileName = Path.Combine(tempFolder, fileInfo.Name);

            File.Copy(fileInfo.FullName, localZipFileName, true);

            Extract(localZipFileName, tempFolder, packageInfo.InternalPath);

            File.Delete(localZipFileName);

            return Path.Combine(tempFolder, packageInfo.InternalPath);
        }
 public override AsimovVersion GetVersion(string versionId, PackageInfo packageInfo)
 {
     throw new NotImplementedException();
 }
 public override IList<AsimovVersion> GetAvailableVersions(PackageInfo packageInfo)
 {
     throw new NotImplementedException();
 }
 public override string CopyAndExtractToTempFolder(string versionId, PackageInfo packageInfo, string tempFolder)
 {
     throw new NotImplementedException();
 }
 public override AsimovVersion GetVersion(string versionId, PackageInfo packageInfo)
 {
     var fileInfo = GetFilePathForVersion(versionId);
     return GetVersionInfoFromFile(fileInfo);
 }
Esempio n. 7
0
 public abstract AsimovVersion GetVersion(string versionId, PackageInfo packageInfo);
Esempio n. 8
0
 public abstract IList<AsimovVersion> GetAvailableVersions(PackageInfo packageInfo);
Esempio n. 9
0
 public abstract string CopyAndExtractToTempFolder(string versionId, PackageInfo packageInfo, string tempFolder);