MessageVersionContext.ExecuteRequestAsync<T> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
Returns
ValueTask<T>
a Task that represents the completion of the work passed in.