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
返回
如此 如果事务应提交
适用于
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