Partilhar via


ITransactionClient.RunTransaction Método

Definição

Sobrecargas

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

Executar delegado de transação

RunTransaction(TransactionOption, Func<Task>)

Executar delegado de transação

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

Executar delegado de transação

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

Parâmetros

transactionOption
TransactionOption
transactionDelegate
Func<Task<Boolean>>

Retornos

True se a transação deve ser confirmada

Aplica-se a

RunTransaction(TransactionOption, Func<Task>)

Executar delegado de transação

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

Parâmetros

transactionOption
TransactionOption
transactionDelegate
Func<Task>

Retornos

Task

Comentários

Transação sempre confirmar, a menos que uma exceção seja gerada do delegado e dependendo de transactionOption

Aplica-se a