LoggingBackend.WithContextLocalConfiguration Method |
Changes the LoggingContextLocalConfiguration for the current execution context.
Namespace: PostSharp.Patterns.Diagnostics
Assembly: PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.5.19.0 (6.5.19.0)
C#
protected LoggingContextLocalConfigurationScope WithContextLocalConfiguration( LoggingContextLocalConfiguration configuration )
Parameters
- configuration
- Type: PostSharp.Patterns.Diagnostics.LoggingContextLocalConfiguration
The new LoggingContextLocalConfiguration for the current execution context.
Return Value
Type: LoggingContextLocalConfigurationScopeAn opaque and disposable cookie that allows to change the CurrentContextLocalConfiguration back to its original value