Edytuj

Udostępnij za pośrednictwem


ITransactionClient.RunTransaction Method

Definition

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
transactionDelegate
Func<Task<Boolean>>

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
transactionDelegate
Func<Task>

Returns

Task

Remarks

Transaction always commit, unless an exception is thrown from the delegate and depending on transactionOption

Applies to