PostSharp 6.10 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics Namespace / Logging­Context­Local­Configuration­Scope Structure

LoggingContextLocalConfigurationScope Structure

Represents a scope started with the WithContextLocalConfiguration(LoggingContextLocalConfiguration) method. Dispose the scope to close it. It is recommended to use the using keyword.

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.10.5.0 (6.10.5.0)
Syntax
C#
public struct LoggingContextLocalConfigurationScope : IDisposable

The LoggingContextLocalConfigurationScope type exposes the following members.

Properties
  NameDescription
Public propertyConfiguration
Gets the LoggingContextLocalConfiguration for the new context.
Methods
  NameDescription
Public methodDispose
Disposes the current scope.
See Also