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