PostSharp//API Reference/Post­Sharp.​Patterns.​Diagnostics/Logging­Backend/Open­Sync­Context
Open sandboxFocus

Method OpenSyncContext

OpenSyncContext(ref LogMemberInfo)

Gets a SyncMethodLoggingContext for a given normal (non-async, non-iterator) method.

Declaration
public SyncMethodLoggingContext OpenSyncContext(ref LogMemberInfo logMemberInfo)
Parameters
Type Name Description
LogMemberInfo logMemberInfo

A reference to a LogMemberInfo describing the method being logged.

Returns
Type Description
SyncMethodLoggingContext

A SyncMethodLoggingContext for logMemberInfo.