public async Task JobExecutionVetoed(IJobExecutionContext context, CancellationToken cancellationToken = default(CancellationToken)) { await _store.UpdateJobHistoryEntryVetoed(context, cancellationToken); }
/// <summary> /// Called by the <see cref="IScheduler" /> when a <see cref="IJobDetail" /> /// was about to be executed (an associated <see cref="ITrigger" /> /// has occurred), but a <see cref="ITriggerListener" /> vetoed it's /// execution. /// </summary> /// <seealso cref="JobToBeExecuted(IJobExecutionContext, CancellationToken)"/> public virtual Task JobExecutionVetoed(IJobExecutionContext context, CancellationToken cancellationToken = default) { return(_store.UpdateJobHistoryEntryVetoed(context, cancellationToken)); }