PostSharp 2023.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 that is currently associated to the current async method invocation. An async method invocation may be associated to several different tasks during its lifetime.

Namespace:  PostSharp.Patterns.Diagnostics.Contexts
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 2023.0.3.0 (2023.0.3.0)
public Task Task { get; set; }

Property Value

Type: Task
See Also