PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​ContextsAsync­Logging­Context
Open sandboxFocus

AsyncLoggingContext Class

A LoggingContext that can represent an async method execution or an async custom activity.

Namespace: PostSharp.Patterns.Diagnostics.Contexts
Assembly: PostSharp.Patterns.Diagnostics.dll
public abstract class AsyncLoggingContext : SuspendableLoggingContext, ILoggingContext


Name Description

Determines whether the current LoggingContext represents an async method or an asynchronous custom activity.


Name Description
GetExecutionContextData(LoggingExecutionContextData, Boolean)

Returns a new layer for the async stack that has this LoggingContext as the associated activity and current as the PostSharp.Patterns.Diagnostics.Contexts.LoggingExecutionContextData.Parent, if a new layer is required.