PostSharp 6.10 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Backends.​Serilog Namespace / Serilog­Logging­Backend Class / Serilog­Logging­Backend Methods / Serilog­Logging­Backend.​Create­Sync­Method­Context Method

SerilogLoggingBackend.CreateSyncMethodContext Method

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

Namespace:  PostSharp.Patterns.Diagnostics.Backends.Serilog
Assembly:  PostSharp.Patterns.Diagnostics.Backends.Serilog (in PostSharp.Patterns.Diagnostics.Backends.Serilog.dll) Version: 6.10.5.0 (6.10.5.0)
Syntax
C#
protected override SyncMethodLoggingContext CreateSyncMethodContext(
	ThreadLoggingContext threadContext
)

Parameters

threadContext
Type: PostSharp.Patterns.Diagnostics.Contexts.ThreadLoggingContext
The ThreadLoggingContext in which the method is executed.

Return Value

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