Пример #1
0
 /// <summary>
 /// Inform the <see cref="T:Quartz.Spi.IJobStore"/> that the scheduler is now firing the
 ///             given <see cref="T:Quartz.ITrigger"/> (executing its associated <see cref="T:Quartz.IJob"/>),
 ///             that it had previously acquired (reserved).
 /// </summary>
 /// <returns>
 /// May return null if all the triggers or their calendars no longer exist, or
 ///             if the trigger was not successfully put into the 'executing'
 ///             state.  Preference is to return an empty list if none of the triggers
 ///             could be fired.
 /// </returns>
 public Task <IReadOnlyCollection <TriggerFiredResult> > TriggersFired(IReadOnlyCollection <IOperableTrigger> triggers, CancellationToken cancellationToken = default(CancellationToken))
 {
     _logger.Info("TriggersFired");
     return(Task.FromResult(DoWithLock(() => _storage.TriggersFired(triggers), "Error on Triggers Fired")));
 }
Пример #2
0
 /// <summary>
 /// Inform the <see cref="T:Quartz.Spi.IJobStore"/> that the scheduler is now firing the
 ///             given <see cref="T:Quartz.ITrigger"/> (executing its associated <see cref="T:Quartz.IJob"/>),
 ///             that it had previously acquired (reserved).
 /// </summary>
 /// <returns>
 /// May return null if all the triggers or their calendars no longer exist, or
 ///             if the trigger was not successfully put into the 'executing'
 ///             state.  Preference is to return an empty list if none of the triggers
 ///             could be fired.
 /// </returns>
 public IList <TriggerFiredResult> TriggersFired(IList <IOperableTrigger> triggers)
 {
     _logger.Info("TriggersFired");
     return(DoWithLock(() => _storage.TriggersFired(triggers), "Error on Triggers Fired"));
 }