PostSharp 6.9 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Contexts Namespace / Logging­Execution­Context­Data Class

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 Parent parent property. Previously known as ContextLocalData.
Inheritance Hierarchy
System.Object
  PostSharp.Patterns.Diagnostics.Contexts.LoggingExecutionContextData

Namespace:  PostSharp.Patterns.Diagnostics.Contexts
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.9.1.0 (6.9.1.0)
Syntax
C#
public class LoggingExecutionContextData : IHierarchicalContextIdInfo

The LoggingExecutionContextData type exposes the following members.

Constructors
  NameDescription
Protected methodLoggingExecutionContextData
Initializes a new instance of this class.
Properties
  NameDescription
Public propertyTransaction
Gets the transaction that's currently active.
Methods
  NameDescription
Public methodClone
Returns a shallow copy of this instance.
Public methodGenerateChildContextId
Returns a new child identifier that it unique within the current parent.
See Also