PostSharp//API Reference/Post­Sharp.​Patterns.​Diagnostics.​Backends.​Serilog/Serilog­Logging­Backend/Create­Sync­Custom­Activity­Context
Open sandboxFocus

Method CreateSyncCustomActivityContext

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)