/// <summary> /// Pause all of the <see cref="T:Quartz.IJob"/>s in the given /// group - by pausing all of their <see cref="T:Quartz.ITrigger"/>s. /// <para> /// The JobStore should "remember" that the group is paused, and impose the /// pause on any new jobs that are added to the group while the group is /// paused. /// </para> /// </summary> /// <seealso cref="T:System.String"/> public Task <IReadOnlyCollection <string> > PauseJobs(GroupMatcher <JobKey> matcher, CancellationToken cancellationToken = default(CancellationToken)) { _logger.Info("PauseJobs"); return(Task.FromResult(DoWithLock(() => _storage.PauseJobs(matcher), "Error on pausing jobs"))); }
/// <summary> /// Pause all of the <see cref="T:Quartz.IJob"/>s in the given /// group - by pausing all of their <see cref="T:Quartz.ITrigger"/>s. /// <para> /// The JobStore should "remember" that the group is paused, and impose the /// pause on any new jobs that are added to the group while the group is /// paused. /// </para> /// </summary> /// <seealso cref="T:System.String"/> public IList <string> PauseJobs(GroupMatcher <JobKey> matcher) { _logger.Info("PauseJobs"); return(DoWithLock(() => _storage.PauseJobs(matcher), "Error on pausing jobs")); }