LoggingBackend.GetAsyncContextOfTask Method |
Gets the AsyncMethodLoggingContext associated with a Task.
Namespace: PostSharp.Patterns.Diagnostics
Assembly: PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public AsyncMethodLoggingContext GetAsyncContextOfTask( Task task )
Parameters
- task
- Type: System.Threading.Tasks.Task
A Task (typically representing an async method).
Return Value
Type: AsyncMethodLoggingContextThe AsyncMethodLoggingContext associated with task, or null if no AsyncMethodLoggingContext is associated with task.