Click or drag to resize

TransactionContextSelectTransactionallyTResult Method

Executes the provided callback within a transaction, and automatically commits the transaction when the callback returns. If the transaction conflicts (it raises a TransactionConflictException), the callback is executed again with a new transaction. This process continues until the transaction commits successfully. When the transaction commits successfully, the value returned by the provided callback is returned by this method.

Namespace:  AGI.Foundation
Assembly:  AGI.Foundation.Tracking (in AGI.Foundation.Tracking.dll) Version: 20.2.404.0 (20.2.404.0)
public TResult SelectTransactionally<TResult>(
	TransactionalSelectCallback<TResult> selector


Type: AGI.FoundationTransactionalSelectCallbackTResult
The callback to execute transactionally.

Type Parameters

The return type of the callback.

Return Value

Type: TResult
The return value of the callback when executed.
See Also