PostSharp6.1/API Reference/Post­Sharp.​Patterns.​Caching Namespace/Caching­Profile Class/Caching­Profile Properties/Caching­Profile.​Lock­Manager Property

CachingProfile.LockManager Property

Gets or sets the lock manager used to synchronize the execution of methods that are cached with the current profile. The default lock manager is NullLockManager, which allows for concurrent execution of all methods. An alternative implementation is LocalLockManager, which prevents concurrent execution of the same method with the same parameters, in the current process (or AppDomain).

Namespace:  PostSharp.Patterns.Caching
Assembly:  PostSharp.Patterns.Caching (in PostSharp.Patterns.Caching.dll) Version: 6.1.23.0 (6.1.23.0)
Syntax
C#
public ILockManager LockManager { get; set; }

Property Value

Type: ILockManager
See Also