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

LoggingBackend.CreateSyncCustomActivityContext Method

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.0.24.0 (6.0.24.0)
Syntax
C#
protected virtual 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