Condividi tramite


TransactionalStateExtensions.PerformUpdate<TState> Metodo

Definizione

Esegue un'operazione di aggiornamento, senza restituire alcun risultato.

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

Parametri di tipo

TState

Parametri

transactionalState
ITransactionalState<TState>

Stato transazionale su cui eseguire l'aggiornamento.

updateAction
Action<TState>

Azione che aggiorna lo stato.

Restituisce

Si applica a