PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Aspects Namespace / Method­Binding­Invoke­Awaitable Structure / Method­Binding­Invoke­Awaitable Methods / Method­Binding­Invoke­Awaitable.​Get­Task Method

MethodBindingInvokeAwaitable.GetTask Method

Gets the underlying task that was returned by the asynchronous method invocation.

Namespace:  PostSharp.Aspects
Assembly:  PostSharp (in PostSharp.dll) Version: 2023.0.3.0 (2023.0.3.0)
public Task GetTask()

Return Value

Type: Task
The Task instance returned by the asynchronous method.
See Also