共用方式為


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>

更新狀態的動作。

傳回

適用於