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

LoggingBackend.CreateSyncMethodContext Method

CreateSyncMethodContext(ThreadLoggingContext)

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

Declaration
protected virtual SyncMethodLoggingContext CreateSyncMethodContext(ThreadLoggingContext threadContext)
Parameters
Type Name Description
ThreadLoggingContext threadContext

The ThreadLoggingContext in which the method is executed.

Returns
Type Description
SyncMethodLoggingContext

A new SyncMethodLoggingContext to be used only in the thread of threadContext.