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

LoggingBackend.CreateEphemeralContext Method

Creates a new EphemeralLoggingContext.

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.0.24.0 (6.0.24.0)
Syntax
C#
protected virtual 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