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

SyncMethodLoggingContext Class

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

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(Boolean) method.