PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​ContextsSync­Logging­Context
Open sandboxFocus

SyncLoggingContext Class

A LoggingContext that represents a synchronous context (i.e. a context that executes as a single block, without being suspended).

Inheritance
System.Object
SyncLoggingContext
Namespace: PostSharp.Patterns.Diagnostics.Contexts
Assembly: PostSharp.Patterns.Diagnostics.dll
Syntax
public abstract class SyncLoggingContext : LoggingContext, ILoggingContext

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.

ReturnToPool()

Returns the current instance to the pool to which it belongs. This method is invoked by the Dispose(Boolean) method.