PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​ContextsLogging­ContextIs­Sharable
Open sandboxFocus

LoggingContext.IsSharable Property


Determines whether the current LoggingContext can be accessed outside of its nominal lifetime (for instance after the method has completed or a custom activity has been closed). Since contexts can be pooled and reused, consumers must call the MakeSharable() method if they want to keep a reference to the LoggingContext and access it after its nominal lifetime has completed.

public bool IsSharable { get; }
Property Value
Type Description