PostSharp6.3/API Reference/Post­Sharp.​Patterns.​Diagnostics.​Contexts Namespace/ILogging­Context Interface

ILoggingContext Interface

Defines the minimal semantics of a logging context required by the Logger class.

Namespace:  PostSharp.Patterns.Diagnostics.Contexts
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.3.14.0 (6.3.14.0)
Syntax
C#
public interface ILoggingContext : IDisposable

The ILoggingContext type exposes the following members.

Properties
  NameDescription
Public propertyIsAsync
Determines whether the context represents an async method or a custom activity in an async method.
Public propertyIsDisposed
Determines whether the context is currently disposed (contexts can be recycled, therefore the disposed state is not the final state).
Public propertyRecycleId
Gets an integer that is incremented every time the current instance is being recycled.
Public propertySyntheticId
Gets a cross-process globally unique identifier for the current context.
Methods
  NameDescription
Public methodForEachProperty(LoggingPropertyVisitor<Object>, Boolean)
Invokes a delegate for each property defined in the current logging context and optionally in its ancestor contexts.
Public methodForEachProperty<T>(LoggingPropertyVisitor<T>, T, Boolean)
Invokes a delegate for each property defined in the current logging context and optionally in its ancestor contexts, and specifies passes a state object to the delegate.
See Also