Skip to content

ITransactionalState<TState>.PerformUpdate(Func<TState, TResult>)

PerformUpdate(Func<TState, TResult>)

abstract
public abstract Task<TResult> PerformUpdate<TResult>(Func<TState, TResult> updateFunction)
Performs an update operation and returns the result.

Parameters

updateFunctionFunc<TState, TResult>
A function that reads or updates the state and returns a result.

Returns

A task whose result is the value returned by updateFunction.