/// <summary> /// Remove (delete) the <see cref="T:Quartz.ICalendar"/> with the /// given name. /// </summary> /// <remarks> /// If removal of the <see cref="T:Quartz.ICalendar"/> would result in /// <see cref="T:Quartz.ITrigger"/>s pointing to non-existent calendars, then a /// <see cref="T:Quartz.JobPersistenceException"/> will be thrown. /// </remarks> /// <param name="calName">The name of the <see cref="T:Quartz.ICalendar"/> to be removed.</param> /// <returns> /// <see langword="true"/> if a <see cref="T:Quartz.ICalendar"/> with the given name /// was found and removed from the store. /// </returns> public Task <bool> RemoveCalendar(string calName, CancellationToken cancellationToken = default(CancellationToken)) { _logger.Info("RemoveCalendar"); return(Task.FromResult(DoWithLock(() => _storage.RemoveCalendar(calName), string.Format("Error on remvoing calendar - {0}", calName)))); }
/// <summary> /// Remove (delete) the <see cref="T:Quartz.ICalendar"/> with the /// given name. /// </summary> /// <remarks> /// If removal of the <see cref="T:Quartz.ICalendar"/> would result in /// <see cref="T:Quartz.ITrigger"/>s pointing to non-existent calendars, then a /// <see cref="T:Quartz.JobPersistenceException"/> will be thrown. /// </remarks> /// <param name="calName">The name of the <see cref="T:Quartz.ICalendar"/> to be removed.</param> /// <returns> /// <see langword="true"/> if a <see cref="T:Quartz.ICalendar"/> with the given name /// was found and removed from the store. /// </returns> public bool RemoveCalendar(string calName) { _logger.Info("RemoveCalendar"); return(DoWithLock(() => _storage.RemoveCalendar(calName), string.Format("Error on remvoing calendar - {0}", calName))); }