IHierarchicalContextIdInfo Interface |
Exposes information necessary to generate the synthetic context identifier when the ContextIdGenerationStrategy is set to Hierarchical.
Used by SyntheticIdFormatter.
Namespace: PostSharp.Patterns.Diagnostics.Contexts
Assembly: PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.10.10.0 (6.10.10.0)
C#
public interface IHierarchicalContextIdInfo
The IHierarchicalContextIdInfo type exposes the following members.
Name | Description | |
---|---|---|
ContextId |
Gets the ID of the logging context within its parent or globall, according to IdGenerationStrategy.
| |
IdGenerationStrategy |
Gets the ContextIdGenerationStrategy for the current context.
| |
Parent |
Gets the parent context.
| |
SyntheticIdParentOverride |
If hierarchical IDs are enabled, then this is SyntheticParentId. If they're not enabled, then this property has no meaning.
| |
SyntheticIdRootOverride |
If hierarchical IDs are enabled, then this is SyntheticRootId. If they're not enabled, then this property has no meaning.
|
Name | Description | |
---|---|---|
GenerateChildContextId |
Returns a new child identifier that it unique within the current parent.
|