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.
Namespace: PostSharp.Patterns.Diagnostics.Contexts
Assembly: PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public class LoggingExecutionContextData : IHierarchicalContextIdInfo
The LoggingExecutionContextData type exposes the following members.
Name | Description | |
---|---|---|
LoggingExecutionContextData |
Initializes a new instance of this class.
|
Name | Description | |
---|---|---|
Transaction |
Gets the transaction that's currently active.
|
Name | Description | |
---|---|---|
Clone |
Returns a shallow copy of this instance.
| |
GenerateChildContextId |
Returns a new child identifier that it unique within the current parent.
|