TransactionContextDoTransactionally 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.
Namespace:
AGI.Foundation
Assembly:
AGI.Foundation.Tracking (in AGI.Foundation.Tracking.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax public void DoTransactionally(
Action<Transaction> callback
)
Public Sub DoTransactionally (
callback As Action(Of Transaction)
)
public:
void DoTransactionally(
Action<Transaction^>^ callback
)
member DoTransactionally :
callback : Action<Transaction> -> unit
Parameters
- callback
- Type: SystemActionTransaction
The callback to execute transactionally.
See Also