Called by the IScheduler when a IJobDetail
is about to be executed (an associated ITrigger
has occurred).
This method will not be invoked if the execution of the Job was vetoed by a ITriggerListener.
Namespace: Quartz.Listener
Assembly: Quartz (in Quartz.dll) Version: 3.0.0
Syntax
C#
public virtual Task JobToBeExecuted( IJobExecutionContext context, CancellationToken cancellationToken = null )
Parameters
- context
- Type: QuartzIJobExecutionContext
- cancellationToken (Optional)
- Type: System.ThreadingCancellationToken
The cancellation instruction.
Return Value
Type: Task[Missing <returns> documentation for "M:Quartz.Listener.JobListenerSupport.JobToBeExecuted(Quartz.IJobExecutionContext,System.Threading.CancellationToken)"]
Implements
IJobListenerJobToBeExecuted(IJobExecutionContext, CancellationToken)See Also