PostSharp//API Reference/Post­Sharp.​Patterns.​Diagnostics.​Backends.​Serilog/Serilog­Logging­Backend/Create­Ephemeral­Context
Open sandboxFocus

Method CreateEphemeralContext

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)