共用方式為


ITransactionClient.RunTransaction 方法

定義

多載

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

執行交易委派

RunTransaction(TransactionOption, Func<Task>)

執行交易委派

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

執行交易委派

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

參數

transactionOption
TransactionOption
transactionDelegate
Func<Task<Boolean>>

傳回

如果交易應該認可,則為 True

適用於

RunTransaction(TransactionOption, Func<Task>)

執行交易委派

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

參數

transactionOption
TransactionOption
transactionDelegate
Func<Task>

傳回

Task

備註

交易一律認可,除非從委派擲回例外狀況,而且視情況而定 transactionOption

適用於