Düzenle

Aracılığıyla paylaş


ITransactionalState<TState>.PerformUpdate<TResult> Method

Definition

Performs an update operation and returns the result.

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

Type Parameters

TResult

The type of the return value

Parameters

updateFunction
Func<TState,TResult>

A function that can read and update the state, and return a result

Returns

Task<TResult>

Applies to