Bewerken

Delen via


TransactionalStateExtensions.PerformUpdate<TState> Method

Definition

Performs an update operation, without returning any result.

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

Type Parameters

TState

Parameters

transactionalState
ITransactionalState<TState>

Transactional state to perform update upon.

updateAction
Action<TState>

An action that updates the state.

Returns

Applies to