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

AsyncMethodLoggingContext.Task Property

Gets the Task associated to the current async method.

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 Task Task { get; }

Property Value

Type: Task
See Also