PostSharp//API Reference/Post­Sharp.​Patterns.​Diagnostics.​Contexts/Ephemeral­Logging­Context/Ephemeral­Logging­Context
Open sandboxFocus

Constructor EphemeralLoggingContext

EphemeralLoggingContext(LoggingBackend, ThreadLoggingContext)

Initializes a new EphemeralLoggingContext.

Declaration
public EphemeralLoggingContext(LoggingBackend backend, ThreadLoggingContext threadContext)
Parameters
Type Name Description
LoggingBackend backend

The parent LoggingBackend.

ThreadLoggingContext threadContext

The ThreadLoggingContext in which the new EphemeralLoggingContext will be used.