/// <summary> /// Get the number of <see cref="T:Quartz.IJob"/>s that are /// stored in the <see cref="T:Quartz.Spi.IJobStore"/>. /// </summary> /// <returns/> public Task <int> GetNumberOfJobs(CancellationToken cancellationToken = default(CancellationToken)) { _logger.Info("GetNumberOfJobs"); return(Task.FromResult(DoWithLock(() => _storage.NumberOfJobs(), "Error on getting Number of jobs"))); }
/// <summary> /// Get the number of <see cref="T:Quartz.IJob"/>s that are /// stored in the <see cref="T:Quartz.Spi.IJobStore"/>. /// </summary> /// <returns/> public int GetNumberOfJobs() { _logger.Info("GetNumberOfJobs"); return(DoWithLock(() => _storage.NumberOfJobs(), "Error on getting Number of jobs")); }