Update all of the triggers of the given group to the given new state, if
they are in the given old state.
Namespace: Quartz.Impl.AdoJobStore
Assembly: Quartz (in Quartz.dll) Version: 3.0.0
Syntax
C#
public virtual Task<int> UpdateTriggerGroupStateFromOtherState( ConnectionAndTransactionHolder conn, GroupMatcher<TriggerKey> matcher, string newState, string oldState, CancellationToken cancellationToken = null )
Parameters
- conn
- Type: Quartz.Impl.AdoJobStoreConnectionAndTransactionHolder
the DB connection - matcher
- Type: Quartz.Impl.MatchersGroupMatcherTriggerKey
- newState
- Type: SystemString
the new state for the trigger group - oldState
- Type: SystemString
the old state the triggers must be in - cancellationToken (Optional)
- Type: System.ThreadingCancellationToken
The cancellation instruction.
Return Value
Type: TaskInt32int the number of rows updated
Implements
IDriverDelegateUpdateTriggerGroupStateFromOtherState(ConnectionAndTransactionHolder, GroupMatcherTriggerKey, String, String, CancellationToken)See Also