Düzenle

Aracılığıyla paylaş


ITransactionalState<TState>.PerformRead<TResult> Method

Definition

Performs a read operation and returns the result, without modifying the state.

public System.Threading.Tasks.Task<TResult> PerformRead<TResult> (Func<TState,TResult> readFunction);
abstract member PerformRead : Func<'State, 'Result (requires 'State : null and 'State : (new : unit -> 'State))> -> System.Threading.Tasks.Task<'Result>
Public Function PerformRead(Of TResult) (readFunction As Func(Of TState, TResult)) As Task(Of TResult)

Type Parameters

TResult

The type of the return value

Parameters

readFunction
Func<TState,TResult>

A function that reads the state and returns the result. MUST NOT modify the state.

Returns

Task<TResult>

Applies to