PostSharp//API Reference/Post­Sharp.​Patterns.​Diagnostics.​Contexts/Ephemeral­Logging­Context
Open sandboxFocus

Class EphemeralLoggingContext

A degenerated kind of LoggingContext that is used to emit standalone records.

Inheritance
EphemeralLoggingContext
Namespace: PostSharp.Patterns.Diagnostics.Contexts
Assembly: PostSharp.Patterns.Diagnostics.dll
Syntax
public class EphemeralLoggingContext : LoggingContext, ILoggingContext

Constructors

Name Description
EphemeralLoggingContext(LoggingBackend, ThreadLoggingContext)

Initializes a new EphemeralLoggingContext.

Properties

Name Description
IsAsync

Determines whether the current LoggingContext represents an async method or an asynchronous custom activity.

ThreadContext

Gets the ThreadLoggingContext for the thread in which the current LoggingContext is currently executed.

Methods

Name Description
Dispose(Boolean)

Disposes the current object.

Open(LoggingContext, LoggingTypeSource)

Opens the context.