Skip to content

TransactionalStateExtensions Methods

Provides convenience methods for working with transactional state.

PerformUpdate(ITransactionalState<TState>, Action<TState>)

staticextension
View source
public static Task PerformUpdate<TState>(this ITransactionalState<TState> transactionalState, Action<TState> updateAction)
Performs an update operation, without returning any result.

Parameters

transactionalStateITransactionalState<TState>
Transactional state to perform update upon.
updateActionAction<TState>
An action that updates the state.

Returns

A task which represents the update operation.