PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​ContextsIHierarchical­Context­Id­Info
Open sandboxFocus

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.dll
Syntax
public interface IHierarchicalContextIdInfo

Properties

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.

Methods

Name Description
GenerateChildContextId()

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