PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​ContextsLogging­Execution­Context­Data
Open sandboxFocus

LoggingExecutionContextData Class

Represents data associated with a logging context but that should be passed via execution context rather than the thread context. Sort-of immutable. Stored in an AsyncLocal in a kind of a "stack" maintained by the PostSharp.Patterns.Diagnostics.Contexts.LoggingExecutionContextData.Parent parent property. Previously known as ContextLocalData.

Inheritance
System.Object
LoggingExecutionContextData
Namespace: PostSharp.Patterns.Diagnostics.Contexts
Assembly: PostSharp.Patterns.Diagnostics.dll
Syntax
public class LoggingExecutionContextData : Object, IHierarchicalContextIdInfo

Constructors

Name Description
LoggingExecutionContextData()

Initializes a new instance of this class.

Properties

Name Description
Transaction

Gets the transaction that's currently active.

Methods

Name Description
Clone()

Returns a shallow copy of this instance.

GenerateChildContextId()

Returns a new child identifier that it unique within the current parent.

Explicit Interface Implementations

Name Description
IHierarchicalContextIdInfo.ContextId
IHierarchicalContextIdInfo.IdGenerationStrategy
IHierarchicalContextIdInfo.Parent
IHierarchicalContextIdInfo.SyntheticIdParentOverride
IHierarchicalContextIdInfo.SyntheticIdRootOverride