Skip to content

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

PerformRead(Func<TState, TResult>, ReadIsolation)

abstract
public abstract Task<TResult> PerformRead<TResult>(Func<TState, TResult> readFunction, ReadIsolation isolation)
Performs a read operation with the specified isolation and returns the result.

Parameters

readFunctionFunc<TState, TResult>
A function that reads the state and returns the result. The function must leave the supplied state unchanged.
isolationReadIsolation
The read isolation.

Returns

A task whose result is the value returned by readFunction.