PostSharp6.4/API Reference/Post­Sharp.​Patterns.​Caching.​Locking Namespace/ILock­Manager Interface

ILockManager Interface

Provides instances of named locks.

Namespace:  PostSharp.Patterns.Caching.Locking
Assembly:  PostSharp.Patterns.Caching (in PostSharp.Patterns.Caching.dll) Version: 6.4.3.0 (6.4.3.0)
Syntax
C#
public interface ILockManager

The ILockManager type exposes the following members.

Methods
  NameDescription
Public methodGetLock
Gets a handle to a named lock. This method must return immediately. Waiting, if any, must be done in the Acquire(TimeSpan, CancellationToken) method.
Remarks
Two implementations are provided: NullLockManager and LocalLockManager. To change the lock manager, set the LockManager property.
See Also