/// <summary> /// Retrieve the given <see cref="T:Quartz.ITrigger"/>. /// </summary> /// <param name="calName">The name of the <see cref="T:Quartz.ICalendar"/> to be retrieved.</param> /// <returns> /// The desired <see cref="T:Quartz.ICalendar"/>, or null if there is no /// match. /// </returns> public Task <ICalendar> RetrieveCalendar(string calName, CancellationToken cancellationToken = default(CancellationToken)) { _logger.Info("RetrieveCalendar"); return(Task.FromResult(DoWithLock(() => _storage.RetrieveCalendar(calName), string.Format("Error on retrieving calendar - {0}", calName)))); }
/// <summary> /// Retrieve the given <see cref="T:Quartz.ITrigger"/>. /// </summary> /// <param name="calName">The name of the <see cref="T:Quartz.ICalendar"/> to be retrieved.</param> /// <returns> /// The desired <see cref="T:Quartz.ICalendar"/>, or null if there is no /// match. /// </returns> public ICalendar RetrieveCalendar(string calName) { _logger.Info("RetrieveCalendar"); return(DoWithLock(() => _storage.RetrieveCalendar(calName), string.Format("Error on retrieving calendar - {0}", calName))); }