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>>

返回

如此 如果事务应提交

适用于

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

适用于