PostSharpAPI ReferencePost­Sharp.​Patterns.​DiagnosticsLogging­BackendOpen­Sync­Context
Open sandboxFocus

LoggingBackend.OpenSyncContext Method

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.