Exemplo n.º 1
0
 /// <summary>
 /// Notifies the scheduler about misfired trigger.
 /// </summary>
 /// <param name="trigger">The trigger that misfired.</param>
 public virtual void NotifyTriggerListenersMisfired(ITrigger trigger)
 {
     try
     {
         sched.NotifyTriggerListenersMisfired(trigger);
     }
     catch (SchedulerException se)
     {
         sched.NotifySchedulerListenersError("Error notifying listeners of trigger misfire.", se);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Notifies the scheduler about misfired trigger.
 /// </summary>
 /// <param name="trigger">The trigger that misfired.</param>
 public virtual async Task NotifyTriggerListenersMisfired(ITrigger trigger)
 {
     try
     {
         await sched.NotifyTriggerListenersMisfired(trigger).ConfigureAwait(false);
     }
     catch (SchedulerException se)
     {
         log.ErrorException("Error notifying listeners of trigger misfire.", se);
         await sched.NotifySchedulerListenersError("Error notifying listeners of trigger misfire.", se).ConfigureAwait(false);
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Notifies the scheduler about misfired trigger.
 /// </summary>
 /// <param name="trigger">The trigger that misfired.</param>
 /// <param name="cancellationToken">The cancellation instruction.</param>
 public virtual async Task NotifyTriggerListenersMisfired(
     ITrigger trigger,
     CancellationToken cancellationToken = default(CancellationToken))
 {
     try
     {
         await sched.NotifyTriggerListenersMisfired(trigger, cancellationToken).ConfigureAwait(false);
     }
     catch (SchedulerException se)
     {
         log.ErrorException("Error notifying listeners of trigger misfire.", se);
         await sched.NotifySchedulerListenersError("Error notifying listeners of trigger misfire.", se, cancellationToken).ConfigureAwait(false);
     }
 }