PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​Backends.​SerilogSerilog­Logging­BackendCreate­Ephemeral­Context
Open sandboxFocus

SerilogLoggingBackend.CreateEphemeralContext Method

CreateEphemeralContext(ThreadLoggingContext)

Creates a new EphemeralLoggingContext.

Declaration
protected override 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.

Overrides
LoggingBackend.CreateEphemeralContext(ThreadLoggingContext)