LoggingBackend.GetAsyncContextOfTask Method |
Namespace: PostSharp.Patterns.Diagnostics
Assembly: PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 5.0.55.0 (5.0.55.0)
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.