PostSharp6.6//API Reference/Post­Sharp.​Patterns.​Diagnostics.​Backends.​Serilog Namespace/Serilog­Logging­Backend Class/Serilog­Logging­Backend Methods/Serilog­Logging­Backend.​Create­Sync­Custom­Activity­Context Method

SerilogLoggingBackend.CreateSyncCustomActivityContext Method

Namespace:  PostSharp.Patterns.Diagnostics.Backends.Serilog
Assembly:  PostSharp.Patterns.Diagnostics.Backends.Serilog (in PostSharp.Patterns.Diagnostics.Backends.Serilog.dll) Version: 6.6.7.0 (6.6.7.0)
Syntax
C#
protected override SyncCustomActivityLoggingContext CreateSyncCustomActivityContext(
	ThreadLoggingContext threadContext
)

Parameters

threadContext
Type: PostSharp.Patterns.Diagnostics.Contexts.ThreadLoggingContext
The ThreadLoggingContext in which the SyncCustomActivityLoggingContext will be used.

Return Value

Type: SyncCustomActivityLoggingContext
A new SyncCustomActivityLoggingContext to be used only in the thread of threadContext.
See Also