PostSharp 5.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Contexts Namespace / Async­Method­Logging­Context Class / Async­Method­Logging­Context Methods / Async­Method­Logging­Context.​Set­Awaited­Task Method

AsyncMethodLoggingContext.SetAwaitedTask Method

Sets the awaited Task and/or MethodBase (i.e. the operand of the await operator).

Namespace:  PostSharp.Patterns.Diagnostics.Contexts
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 5.0.55.0 (5.0.55.0)
Syntax
C#
public void SetAwaitedTask(
	Task awaitedTask,
	MethodBase awaitedMethod
)

Parameters

awaitedTask
Type: System.Threading.Tasks.Task
The awaited Task, or null if the Task cannot be determined.
awaitedMethod
Type: System.Reflection.MethodBase
The awaited MethodBase.
See Also