PostSharp6.4/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.4.3.0 (6.4.3.0)
Syntax
C#
public void MakeSharable()
See Also