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