Update the states of all triggers associated with the given job.
Namespace: Quartz.Impl.AdoJobStore
Assembly: Quartz (in Quartz.dll) Version: 3.0.0
Syntax
C#
public virtual Task<int> UpdateTriggerStatesForJob( ConnectionAndTransactionHolder conn, JobKey jobKey, string state, CancellationToken cancellationToken = null )
Parameters
- conn
- Type: Quartz.Impl.AdoJobStoreConnectionAndTransactionHolder
the DB Connection - jobKey
- Type: QuartzJobKey
the key of the job - state
- Type: SystemString
the new state for the triggers - cancellationToken (Optional)
- Type: System.ThreadingCancellationToken
The cancellation instruction.
Return Value
Type: TaskInt32the number of rows updated
Implements
IDriverDelegateUpdateTriggerStatesForJob(ConnectionAndTransactionHolder, JobKey, String, CancellationToken)See Also