Update the state for a given trigger.
Namespace: Quartz.Impl.AdoJobStore
Assembly: Quartz (in Quartz.dll) Version: 3.0.0
Syntax
C#
Task<int> UpdateTriggerState( ConnectionAndTransactionHolder conn, TriggerKey triggerKey, string state, CancellationToken cancellationToken = null )
Parameters
- conn
- Type: Quartz.Impl.AdoJobStoreConnectionAndTransactionHolder
The DB Connection - triggerKey
- Type: QuartzTriggerKey
The key identifying the trigger. - state
- Type: SystemString
The new state for the trigger. - cancellationToken (Optional)
- Type: System.ThreadingCancellationToken
The cancellation instruction.
Return Value
Type: TaskInt32the number of rows updated
See Also