PostSharp6.2/API Reference/Post­Sharp.​Patterns.​Diagnostics Namespace/Logging­Backend Class/Logging­Backend Methods/Logging­Backend.​Open­Ephemeral­Context Method/Logging­Backend.​Open­Ephemeral­Context Method (Logging­Type­Source, Thread­Logging­Context)

LoggingBackend.OpenEphemeralContext Method (LoggingTypeSource, ThreadLoggingContext)

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.2.11.0 (6.2.11.0)
Syntax
C#
public EphemeralLoggingContext OpenEphemeralContext(
	LoggingTypeSource source,
	ref ThreadLoggingContext threadContext
)

Parameters

source
Type: PostSharp.Patterns.Diagnostics.LoggingTypeSource
threadContext
Type: PostSharp.Patterns.Diagnostics.Contexts.ThreadLoggingContext

Return Value

Type: EphemeralLoggingContext
See Also