Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FileDatabaseArchive"/> class.
 /// </summary>
 /// <param name="archivePath">The root directory of the archive.</param>
 public FileDatabaseArchive(string archivePath, IManifestReader manifestReader)
 {
     this.ArchivePath    = archivePath;
     this.manifestReader = manifestReader;
     this.ParseManifests();
     this.LoadProperties();
 }
Beispiel #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="dbversion.Archives.Zip.ZipDatabaseArchive"/> class.
        /// </summary>
        /// <param name='path'>
        /// The path to the archive.
        /// </param>
        /// <param name='manifestReader'>
        /// The manifest reader.
        /// </param>
        public ZipDatabaseArchive(string path, IManifestReader manifestReader)
        {
            Validate.NotEmpty(() => path);
            Validate.NotNull(() => manifestReader);

            this.ArchivePath    = path;
            this.manifestReader = manifestReader;

            using (ZipFile zipFile = new ZipFile(path))
            {
                this.ParseManifests(zipFile);
                this.LoadProperties(zipFile);
            }
        }
Beispiel #3
0
 public WorkloadsController(IManifestReader manifestReader)
 {
     _manifestReader = manifestReader;
 }