JobStoreSupportExecuteInNonManagedTXLockT Method (String, FuncConnectionAndTransactionHolder, TaskT, FuncConnectionAndTransactionHolder, T, TaskBoolean, CancellationToken)

Quartz.NET 3.0 API Documentation
Execute the given callback having optionally acquired the given lock. This uses the non-managed transaction connection.

Namespace:  Quartz.Impl.AdoJobStore
Assembly:  Quartz (in Quartz.dll) Version: 3.0.0
Syntax

C#
protected Task<T> ExecuteInNonManagedTXLock<T>(
	string lockName,
	Func<ConnectionAndTransactionHolder, Task<T>> txCallback,
	Func<ConnectionAndTransactionHolder, T, Task<bool>> txValidator,
	CancellationToken cancellationToken
)

Parameters

lockName
Type: SystemString
The name of the lock to acquire, for example "TRIGGER_ACCESS". If null, then no lock is acquired, but the lockCallback is still executed in a non-managed transaction.
txCallback
Type: SystemFuncConnectionAndTransactionHolder, TaskT
The callback to execute after having acquired the given lock.
txValidator
Type: SystemFuncConnectionAndTransactionHolder, T, TaskBoolean

[Missing <param name="txValidator"/> documentation for "M:Quartz.Impl.AdoJobStore.JobStoreSupport.ExecuteInNonManagedTXLock``1(System.String,System.Func{Quartz.Impl.AdoJobStore.ConnectionAndTransactionHolder,System.Threading.Tasks.Task{``0}},System.Func{Quartz.Impl.AdoJobStore.ConnectionAndTransactionHolder,``0,System.Threading.Tasks.Task{System.Boolean}},System.Threading.CancellationToken)"]

cancellationToken
Type: System.ThreadingCancellationToken
The cancellation instruction.

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "M:Quartz.Impl.AdoJobStore.JobStoreSupport.ExecuteInNonManagedTXLock``1(System.String,System.Func{Quartz.Impl.AdoJobStore.ConnectionAndTransactionHolder,System.Threading.Tasks.Task{``0}},System.Func{Quartz.Impl.AdoJobStore.ConnectionAndTransactionHolder,``0,System.Threading.Tasks.Task{System.Boolean}},System.Threading.CancellationToken)"]

Return Value

Type: TaskT

[Missing <returns> documentation for "M:Quartz.Impl.AdoJobStore.JobStoreSupport.ExecuteInNonManagedTXLock``1(System.String,System.Func{Quartz.Impl.AdoJobStore.ConnectionAndTransactionHolder,System.Threading.Tasks.Task{``0}},System.Func{Quartz.Impl.AdoJobStore.ConnectionAndTransactionHolder,``0,System.Threading.Tasks.Task{System.Boolean}},System.Threading.CancellationToken)"]

See Also

Reference