TransactionalStateExtensions.PerformUpdate<TState> 方法

定义

执行更新操作,而不返回任何结果。

public static System.Threading.Tasks.Task PerformUpdate<TState> (this Orleans.Transactions.Abstractions.ITransactionalState<TState> transactionalState, Action<TState> updateAction) where TState : class, new();
static member PerformUpdate : Orleans.Transactions.Abstractions.ITransactionalState<'State (requires 'State : null and 'State : (new : unit -> 'State))> * Action<'State (requires 'State : null and 'State : (new : unit -> 'State))> -> System.Threading.Tasks.Task (requires 'State : null and 'State : (new : unit -> 'State))
<Extension()>
Public Function PerformUpdate(Of TState As {Class, New}) (transactionalState As ITransactionalState(Of TState), updateAction As Action(Of TState)) As Task

类型参数

TState

参数

transactionalState
ITransactionalState<TState>

要对其执行更新的事务状态。

updateAction
Action<TState>

更新状态的操作。

返回

适用于