Example #1
0
 public async Task JobToBeExecuted(IJobExecutionContext context, CancellationToken cancellationToken = default(CancellationToken))
 {
     await _store.CreateJobHistoryEntry(context, cancellationToken);
 }
 /// <summary>
 ///     Called by the <see cref="IScheduler"/> when a <see cref="IJobDetail"/> is
 ///     about to be executed (an associated <see cref="ITrigger"/> has occurred).
 ///     <para>
 ///         This method will not be invoked if the execution of the Job was vetoed by a
 ///         <see cref="ITriggerListener"/>.
 ///     </para>
 /// </summary>
 /// <seealso cref="JobExecutionVetoed(IJobExecutionContext, CancellationToken)"/>
 public virtual Task JobToBeExecuted(IJobExecutionContext context, CancellationToken cancellationToken = default)
 {
     return(_store.CreateJobHistoryEntry(context, cancellationToken));
 }