PostSharp 6.8 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Contexts Namespace / IHierarchical­Context­Id­Info Interface

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.8.6.0 (6.8.6.0)
Syntax
C#
public interface IHierarchicalContextIdInfo

The IHierarchicalContextIdInfo type exposes the following members.

Properties
  NameDescription
Public propertyContextId
Gets the ID of the logging context within its parent or globall, according to IdGenerationStrategy.
Public propertyIdGenerationStrategy
Gets the ContextIdGenerationStrategy for the current context.
Public propertyParent
Gets the parent context.
Public propertySyntheticIdParentOverride
If hierarchical IDs are enabled, then this is SyntheticParentId. If they're not enabled, then this property has no meaning.
Public propertySyntheticIdRootOverride
If hierarchical IDs are enabled, then this is SyntheticRootId. If they're not enabled, then this property has no meaning.
Methods
  NameDescription
Public methodGenerateChildContextId
Returns a new child identifier that it unique within the current parent.
See Also