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: 24.2.419.0 (24.2.419.0)
Syntax public TResult SelectTransactionally<TResult>(
TransactionalSelectCallback<TResult> selector
)
Public Function SelectTransactionally(Of TResult) (
selector As TransactionalSelectCallback(Of TResult)
) As TResult
public:
generic<typename TResult>
TResult SelectTransactionally(
TransactionalSelectCallback<TResult>^ selector
)
member SelectTransactionally :
selector : TransactionalSelectCallback<'TResult> -> 'TResult
Parameters
- selector
- Type: AGI.FoundationTransactionalSelectCallbackTResult
The callback to execute transactionally.
Type Parameters
- TResult
- The return type of the callback.
Return Value
Type:
TResultThe return value of the callback when executed.
See Also