RunTransaction(TransactionOption, Func<Task<bool>>)
abstract
public abstract Task RunTransaction(TransactionOption transactionOption, Func<Task<bool>> transactionDelegate) Executes a delegate using the specified transaction option.
Parameters
transactionOptionTransactionOption- The transaction creation, joining, or suppression behavior.
transactionDelegateFunc<Task<bool>>- The delegate to execute. Its result indicates whether the transaction should commit.
Returns
A
System.Threading.Tasks.Task representing the transaction operation.