Update the given trigger to the given new state, if it is in the given
old state.
Namespace: Quartz.Impl.AdoJobStore
Assembly: Quartz (in Quartz.dll) Version: 3.0.0
Syntax
C#
Task<int> UpdateTriggerStateFromOtherState( ConnectionAndTransactionHolder conn, TriggerKey triggerKey, string newState, string oldState, CancellationToken cancellationToken = null )
Parameters
- conn
- Type: Quartz.Impl.AdoJobStoreConnectionAndTransactionHolder
The DB connection - triggerKey
- Type: QuartzTriggerKey
The key identifying the trigger. - newState
- Type: SystemString
The new state for the trigger - oldState
- Type: SystemString
The old state the trigger must be in - cancellationToken (Optional)
- Type: System.ThreadingCancellationToken
The cancellation instruction.
Return Value
Type: TaskInt32int the number of rows updated
See Also