ITransactionClient.RunTransaction 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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
傳回
如果交易應該認可,則為 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
傳回
備註
交易一律認可,除非從委派擲回例外狀況,而且視情況而定 transactionOption