Update the state for a given trigger.
Namespace: Quartz.Impl.AdoJobStore
Assembly: Quartz (in Quartz.dll) Version: 3.0.0
Syntax
C#
public virtual 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 of 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.
Implements
IDriverDelegateUpdateTriggerState(ConnectionAndTransactionHolder, TriggerKey, String, CancellationToken)See Also