PostSharp6.0/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: 6.0.35.0 (6.0.35.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