Beispiel #1
0
        /// <summary>
        /// Empties all expired entries that are in the StashRepo.
        /// Throws an exception if any deletions fail and rolls back changes.
        /// </summary>
        public void EmptyAll()
        {
            int recordsDeleted = col.DeleteAll();

            Console.WriteLine(@"{0} records deleted", recordsDeleted);
        }
Beispiel #2
0
 /// <summary>
 /// Delete all documents inside collection.
 /// Returns how many documents was deleted.
 /// Run inside current transaction
 /// </summary>
 public Task <int> DeleteAllAsync()
 {
     return(Task.FromResult(cities.DeleteAll()));
 }