PostSharp6.0/API Reference/Post­Sharp.​Patterns.​Diagnostics Namespace/Logging­Backend Class/Logging­Backend Methods/Logging­Backend.​Create­Async­Method­Context Method

LoggingBackend.CreateAsyncMethodContext Method

Creates a new AsyncMethodLoggingContext for a given async method.

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.0.35.0 (6.0.35.0)
Syntax
C#
protected virtual AsyncMethodLoggingContext CreateAsyncMethodContext()

Return Value

Type: AsyncMethodLoggingContext
A new AsyncMethodLoggingContext.
See Also