MessageVersionContext.ExecuteRequestAsync<T> Method

Definition

Executes the provided body of work in the correct context order based on the MessageVersionHeader passed in.

public System.Threading.Tasks.ValueTask<T> ExecuteRequestAsync<T> (Microsoft.Internal.VisualStudio.Extensibility.Framework.MessageVersionHeader header, Func<System.Threading.Tasks.ValueTask<T>> func);
member this.ExecuteRequestAsync : Microsoft.Internal.VisualStudio.Extensibility.Framework.MessageVersionHeader * Func<System.Threading.Tasks.ValueTask<'T>> -> System.Threading.Tasks.ValueTask<'T>
Public Function ExecuteRequestAsync(Of T) (header As MessageVersionHeader, func As Func(Of ValueTask(Of T))) As ValueTask(Of T)

Type Parameters

T

Type that the async work to be executed returns.

Parameters

header
MessageVersionHeader

Header that describes the version requirements.

func
Func<ValueTask<T>>

Asynchronous work to be executed.

Returns

a Task that represents the completion of the work passed in.

Applies to