コード例 #1
0
 /// <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))));
 }
コード例 #2
0
 /// <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)));
 }