Skip to content

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

PerformRead(Func<TState, TResult>, ReadIsolation)

View source
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.