PostSharp 6.7 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Backends.​Serilog Namespace / Serilog­Ephemeral­Logging­Context Class / Serilog­Ephemeral­Logging­Context Constructor

SerilogEphemeralLoggingContext Constructor

Initializes a new SerilogEphemeralLoggingContext.

Namespace:  PostSharp.Patterns.Diagnostics.Backends.Serilog
Assembly:  PostSharp.Patterns.Diagnostics.Backends.Serilog (in PostSharp.Patterns.Diagnostics.Backends.Serilog.dll) Version: 6.7.12.0 (6.7.12.0)
Syntax
C#
public SerilogEphemeralLoggingContext(
	SerilogLoggingBackend backend,
	ThreadLoggingContext threadContext
)

Parameters

backend
Type: PostSharp.Patterns.Diagnostics.Backends.Serilog.SerilogLoggingBackend
The parent LoggingBackend.
threadContext
Type: PostSharp.Patterns.Diagnostics.Contexts.ThreadLoggingContext
The ThreadLoggingContext in which the new SerilogEphemeralLoggingContext will be used.
See Also