ITransactionClient.RunTransaction Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
RunTransaction(TransactionOption, Func<Task<Boolean>>) |
Run transaction delegate |
RunTransaction(TransactionOption, Func<Task>) |
Run transaction delegate |
RunTransaction(TransactionOption, Func<Task<Boolean>>)
Run transaction delegate
public System.Threading.Tasks.Task RunTransaction (Orleans.TransactionOption transactionOption, Func<System.Threading.Tasks.Task<bool>> transactionDelegate);
abstract member RunTransaction : Orleans.TransactionOption * Func<System.Threading.Tasks.Task<bool>> -> System.Threading.Tasks.Task
Public Function RunTransaction (transactionOption As TransactionOption, transactionDelegate As Func(Of Task(Of Boolean))) As Task
Parameters
- transactionOption
- TransactionOption
Returns
True if the transaction should commit
Applies to
RunTransaction(TransactionOption, Func<Task>)
Run transaction delegate
public System.Threading.Tasks.Task RunTransaction (Orleans.TransactionOption transactionOption, Func<System.Threading.Tasks.Task> transactionDelegate);
abstract member RunTransaction : Orleans.TransactionOption * Func<System.Threading.Tasks.Task> -> System.Threading.Tasks.Task
Public Function RunTransaction (transactionOption As TransactionOption, transactionDelegate As Func(Of Task)) As Task
Parameters
- transactionOption
- TransactionOption
Returns
Remarks
Transaction always commit, unless an exception is thrown from the delegate and depending on transactionOption