PostSharp 6.10 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Backends.​Serilog Namespace / Serilog­Logging­Backend Class / Serilog­Logging­Backend Methods / Serilog­Logging­Backend.​Create­Ephemeral­Context Method

SerilogLoggingBackend.CreateEphemeralContext Method

Creates a new EphemeralLoggingContext.

Namespace:  PostSharp.Patterns.Diagnostics.Backends.Serilog
Assembly:  PostSharp.Patterns.Diagnostics.Backends.Serilog (in PostSharp.Patterns.Diagnostics.Backends.Serilog.dll) Version: 6.10.5.0 (6.10.5.0)
Syntax
C#
protected override EphemeralLoggingContext CreateEphemeralContext(
	ThreadLoggingContext threadContext
)

Parameters

threadContext
Type: PostSharp.Patterns.Diagnostics.Contexts.ThreadLoggingContext
The ThreadLoggingContext in which the new EphemeralLoggingContext will be used.

Return Value

Type: EphemeralLoggingContext
A new EphemeralLoggingContext to be use only in the thread of threadContext.
See Also