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, IDisposable

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(bool)

Disposes the current object.

Open(LoggingContext, LoggingTypeSource)

Opens the context.