Called by the IScheduler when a ITrigger
has fired, and it's associated IJobDetail
is about to be executed.
It is called after the TriggerFired(ITrigger, IJobExecutionContext, CancellationToken) method of this interface. If the implementation vetoes the execution (via returning ), the job's execute method will not be called.
Namespace: Quartz
Assembly: Quartz (in Quartz.dll) Version: 3.0.0
Syntax
C#
Task<bool> VetoJobExecution( ITrigger trigger, IJobExecutionContext context, CancellationToken cancellationToken = null )
Parameters
- trigger
- Type: QuartzITrigger
The ITrigger that has fired. - context
- Type: QuartzIJobExecutionContext
The IJobExecutionContext that will be passed to the IJob'sExecute(IJobExecutionContext) method. - cancellationToken (Optional)
- Type: System.ThreadingCancellationToken
The cancellation instruction.
Return Value
Type: TaskBooleanReturns true if job execution should be vetoed, false otherwise.
See Also