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

SerilogLoggingBackend.CreateSyncCustomActivityContext Method

CreateSyncCustomActivityContext(ThreadLoggingContext)

Declaration
protected override SyncCustomActivityLoggingContext CreateSyncCustomActivityContext(ThreadLoggingContext threadContext)
Parameters
Type Name Description
ThreadLoggingContext threadContext

The ThreadLoggingContext in which the SyncCustomActivityLoggingContext will be used.

Returns
Type Description
SyncCustomActivityLoggingContext

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

Overrides
LoggingBackend.CreateSyncCustomActivityContext(ThreadLoggingContext)