Condividi tramite


ITransactionClient.RunTransaction Metodo

Definizione

Overload

RunTransaction(TransactionOption, Func<Task<Boolean>>)

Eseguire il delegato delle transazioni

RunTransaction(TransactionOption, Func<Task>)

Eseguire il delegato delle transazioni

RunTransaction(TransactionOption, Func<Task<Boolean>>)

Eseguire il delegato delle transazioni

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

Parametri

transactionOption
TransactionOption
transactionDelegate
Func<Task<Boolean>>

Restituisce

True se la transazione deve eseguire il commit

Si applica a

RunTransaction(TransactionOption, Func<Task>)

Eseguire il delegato delle transazioni

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

Parametri

transactionOption
TransactionOption
transactionDelegate
Func<Task>

Restituisce

Task

Commenti

Commit delle transazioni sempre, a meno che non venga generata un'eccezione dal delegato e a seconda di transactionOption

Si applica a