Esempio n. 1
0
 /// <summary>
 /// Get the number of <see cref="T:Quartz.ICalendar"/> s that are
 ///             stored in the <see cref="T:Quartz.Spi.IJobStore"/>.
 /// </summary>
 /// <returns/>
 public Task <int> GetNumberOfCalendars(CancellationToken cancellationToken = default(CancellationToken))
 {
     _logger.Info("GetNumberOfCalendars");
     return(Task.FromResult(DoWithLock(() => _storage.NumberOfCalendars(), "Error on getting number of calendars")));
 }
Esempio n. 2
0
 /// <summary>
 /// Get the number of <see cref="T:Quartz.ICalendar"/> s that are
 ///             stored in the <see cref="T:Quartz.Spi.IJobStore"/>.
 /// </summary>
 /// <returns/>
 public int GetNumberOfCalendars()
 {
     _logger.Info("GetNumberOfCalendars");
     return(DoWithLock(() => _storage.NumberOfCalendars(), "Error on getting number of calendars"));
 }