LoggingBackend.CreateSyncMethodContext Method |
Creates a new SyncMethodLoggingContext for a given normal (non-async, non-iterator) method.
Namespace: PostSharp.Patterns.Diagnostics
Assembly: PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.7.12.0 (6.7.12.0)
C#
protected virtual SyncMethodLoggingContext CreateSyncMethodContext( ThreadLoggingContext threadContext )
Parameters
- threadContext
- Type: PostSharp.Patterns.Diagnostics.Contexts.ThreadLoggingContext
The ThreadLoggingContext in which the method is executed.
Return Value
Type: SyncMethodLoggingContextA new SyncMethodLoggingContext to be used only in the thread of threadContext.