StdAdoDelegateUpdateTriggerStateFromOtherState Method

Quartz.NET 3.0 API Documentation
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#
public virtual 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 of 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: TaskInt32
int the number of rows updated

Implements

IDriverDelegateUpdateTriggerStateFromOtherState(ConnectionAndTransactionHolder, TriggerKey, String, String, CancellationToken)
See Also

Reference