Skip to content

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

PerformRead(Func<TState, TResult>)

abstract
public abstract Task<TResult> PerformRead<TResult>(Func<TState, TResult> readFunction)
Performs a read operation and returns the result, without modifying the state.

Parameters

readFunctionFunc<TState, TResult>
A function that reads the state and returns the result. MUST NOT modify the state.