Open sandboxFocus

Interface IHierarchicalContextIdInfo

Exposes the information that is necessary to generate the synthetic context identifier when the ContextIdGenerationStrategy is set to Hierarchical. This interface is 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 globally, according to IdGenerationStrategy.

IdGenerationStrategy

Gets the ContextIdGenerationStrategy for the current context.

Parent

Gets the parent context.

SyntheticIdParentOverride

If hierarchical IDs are enabled, this is SyntheticParentId. If they are not enabled, this property has no meaning.

SyntheticIdRootOverride

If hierarchical IDs are enabled, this is SyntheticRootId. If they are not enabled, this property has no meaning.

Methods

Name Description
GenerateChildContextId()

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