internal UsingInitializedSnapshotStore(Boolean replaceExisting, Boolean async)
 {
     SnapshotStore = new SqlSnapshotStore(new SqlSnapshotStoreDialect(SqlServerConnection.Name), new BinarySerializer(), new SnapshotStoreSettings {
         Async = async, ReplaceExisting = replaceExisting
     });
     SnapshotStore.Purge();
 }
 public void Dispose()
 {
     SnapshotStore.Purge();
 }
 internal UsingInitializedSnapshotStore(Boolean replaceExisting, Boolean async)
 {
     SnapshotStore = new SqlSnapshotStore(new SqlSnapshotStoreDialect(SqlServerConnection.Name), new BinarySerializer(), new SnapshotStoreSettings { Async = async, ReplaceExisting = replaceExisting });
     SnapshotStore.Purge();
 }
Ejemplo n.º 4
0
        /// <summary>
        /// Deletes all existing snapshots from the snapshot store.
        /// </summary>
        public void Purge()
        {
            snapshotStore.Purge();

            statistics.IncrementDeleteCount();
        }