Skip to content

ITransactionClient.RunTransaction(TransactionOption, Func<Task>)

RunTransaction(TransactionOption, Func<Task>)

abstract
public abstract Task RunTransaction(TransactionOption transactionOption, Func<Task> transactionDelegate)
Executes a delegate using the specified transaction option. A newly created transaction commits when the delegate completes successfully; a joined transaction records this participant's commit vote.

Parameters

transactionOptionTransactionOption
The transaction creation, joining, or suppression behavior.
transactionDelegateFunc<Task>
The delegate to execute.

Returns

A System.Threading.Tasks.Task representing the transaction operation.