Esempio n. 1
0
 /// <summary>
 /// Get the current state of the identified <see cref="T:Quartz.ITrigger"/>.
 /// </summary>
 /// <seealso cref="T:Quartz.TriggerState"/>
 public Task <TriggerState> GetTriggerState(TriggerKey triggerKey, CancellationToken cancellationToken = default(CancellationToken))
 {
     _logger.Info("GetTriggerState");
     return(Task.FromResult(DoWithLock(() => _storage.GetTriggerState(triggerKey),
                                       string.Format("Error on getting trigger state for trigger - {0}", triggerKey))));
 }
Esempio n. 2
0
 /// <summary>
 /// Get the current state of the identified <see cref="T:Quartz.ITrigger"/>.
 /// </summary>
 /// <seealso cref="T:Quartz.TriggerState"/>
 public TriggerState GetTriggerState(TriggerKey triggerKey)
 {
     _logger.Info("GetTriggerState");
     return(DoWithLock(() => _storage.GetTriggerState(triggerKey),
                       string.Format("Error on getting trigger state for trigger - {0}", triggerKey)));
 }