Compartilhar via


TransactionalStateExtensions.PerformUpdate<TState> Método

Definição

Executa uma operação de atualização, sem retornar nenhum resultado.

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

Parâmetros de tipo

TState

Parâmetros

transactionalState
ITransactionalState<TState>

Estado transacional no qual executar a atualização.

updateAction
Action<TState>

Uma ação que atualiza o estado.

Retornos

Aplica-se a