PostSharp.ILAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​Backends.​SerilogSerilog­Logging­BackendCreate­Sync­Method­Context
Open sandboxFocus

SerilogLoggingBackend.CreateSyncMethodContext Method

CreateSyncMethodContext(ThreadLoggingContext)

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

Declaration
protected override 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.

Overrides
LoggingBackend.CreateSyncMethodContext(ThreadLoggingContext)