PostSharp 6.5 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Contexts Namespace / Logging­Context Class / Logging­Context Methods / Logging­Context.​Make­Sharable Method

LoggingContext.MakeSharable Method

Allows the current context to be shared beyond its normal lifecycle by preventing it from being returned to the pool.

Namespace:  PostSharp.Patterns.Diagnostics.Contexts
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.5.19.0 (6.5.19.0)
Syntax
C#
public void MakeSharable()
See Also