PerformRead(Func<TState, TResult>, ReadIsolation)
public Task<TResult> PerformRead<TResult>(Func<TState, TResult> operation, ReadIsolation isolation) Performs a read operation with the specified isolation and returns the result.
Parameters
operationFunc<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.