Open sandboxFocus

Class SyncMethodLoggingContext

A LoggingContext that represents a synchronous method (not an async method, not an iterator).

Namespace: PostSharp.Patterns.Diagnostics.Contexts
Assembly: PostSharp.Patterns.Diagnostics.dll
Syntax
public class SyncMethodLoggingContext : SyncLoggingContext, ILoggingContext, IDisposable

Constructors

Name Description
SyncMethodLoggingContext(ThreadLoggingContext)

Initializes a new SyncMethodLoggingContext.

Methods

Name Description
Open(ref LogMemberInfo)

Opens the current context for a given member.

ReturnToPool()

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