PostSharp5.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: 5.0.55.0 (5.0.55.0)
Syntax
C#
protected virtual AsyncMethodLoggingContext CreateAsyncMethodContext()

Return Value

Type: AsyncMethodLoggingContext
A new AsyncMethodLoggingContext.
See Also