Esempio n. 1
0
 /// <summary>
 /// Pause all of the <see cref="T:Quartz.ITrigger"/>s in the
 ///             given group.
 /// </summary>
 /// <remarks>
 /// The JobStore should "remember" that the group is paused, and impose the
 ///             pause on any new triggers that are added to the group while the group is
 ///             paused.
 /// </remarks>
 public Task <IReadOnlyCollection <string> > PauseTriggers(GroupMatcher <TriggerKey> matcher, CancellationToken cancellationToken = default(CancellationToken))
 {
     _logger.Info("PauseTriggers");
     return(Task.FromResult(DoWithLock(() => _storage.PauseTriggers(matcher), "Error on pausing triggers")));
 }
Esempio n. 2
0
 /// <summary>
 /// Pause all of the <see cref="T:Quartz.ITrigger"/>s in the
 ///             given group.
 /// </summary>
 /// <remarks>
 /// The JobStore should "remember" that the group is paused, and impose the
 ///             pause on any new triggers that are added to the group while the group is
 ///             paused.
 /// </remarks>
 public global::Quartz.Collection.ISet <string> PauseTriggers(GroupMatcher <TriggerKey> matcher)
 {
     _logger.Info("PauseTriggers");
     return(DoWithLock(() => new global::Quartz.Collection.HashSet <string>(_storage.PauseTriggers(matcher)), "Error on pausing triggers"));
 }