/// <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(); }
/// <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); } }
public WorkloadsController(IManifestReader manifestReader) { _manifestReader = manifestReader; }