PostSharpAPI ReferencePost­Sharp.​Patterns.​DiagnosticsLogging­BackendWith­Context­Local­Configuration
Open sandboxFocus

LoggingBackend.WithContextLocalConfiguration Method

WithContextLocalConfiguration(LoggingContextLocalConfiguration)

Changes the LoggingContextLocalConfiguration for the current execution context.

Declaration
protected LoggingContextLocalConfigurationScope WithContextLocalConfiguration([Required] LoggingContextLocalConfiguration configuration)
Parameters
Type Name Description
LoggingContextLocalConfiguration configuration

The new LoggingContextLocalConfiguration for the current execution context.

Returns
Type Description
LoggingContextLocalConfigurationScope

An opaque and disposable cookie that allows to change the CurrentContextLocalConfiguration back to its original value