PostSharpAPI ReferencePost­Sharp.​Patterns.​DiagnosticsLogging­BackendCreate­Ephemeral­Context
Open sandboxFocus

LoggingBackend.CreateEphemeralContext Method

CreateEphemeralContext(ThreadLoggingContext)

Creates a new EphemeralLoggingContext.

Declaration
protected virtual EphemeralLoggingContext CreateEphemeralContext(ThreadLoggingContext threadContext)
Parameters
Type Name Description
ThreadLoggingContext threadContext

The ThreadLoggingContext in which the new EphemeralLoggingContext will be used.

Returns
Type Description
EphemeralLoggingContext

A new EphemeralLoggingContext to be use only in the thread of threadContext.