Update all triggers having one of the two given states, to the given new
state.
Namespace: Quartz.Impl.AdoJobStore
Assembly: Quartz (in Quartz.dll) Version: 3.0.0
Syntax
C#
Task<int> UpdateTriggerStatesFromOtherStates( ConnectionAndTransactionHolder conn, string newState, string oldState1, string oldState2, CancellationToken cancellationToken = null )
Parameters
- conn
- Type: Quartz.Impl.AdoJobStoreConnectionAndTransactionHolder
The DB Connection - newState
- Type: SystemString
The new state for the triggers - oldState1
- Type: SystemString
The first old state to update - oldState2
- Type: SystemString
The second old state to update - cancellationToken (Optional)
- Type: System.ThreadingCancellationToken
The cancellation instruction.
Return Value
Type: TaskInt32Number of rows updated
See Also