Ejemplo n.º 1
0
        /// <summary>
        /// Clear all collections
        /// </summary>
        internal void ClearAllCollections()
        {
            var filter = new BsonDocument();

            Schedulers.DeleteMany(filter);
            Calendars.DeleteMany(filter);
            Triggers.DeleteMany(filter);
            Jobs.DeleteMany(filter);
            PausedTriggerGroups.DeleteMany(filter);
            PausedJobGroups.DeleteMany(filter);
            BlockedJobs.DeleteMany(filter);
        }