PostSharp6.4/API Reference/Post­Sharp.​Patterns.​Caching.​Locking Namespace/Local­Lock­Manager Class

LocalLockManager Class

An implementation of ILockManager in which every instance of the LocalLockManager has its own set of named locks that are not shared in any way with other instances. The LocalLockManager can be used to synchronize the execution of methods in the current process and AppDomain.
Inheritance Hierarchy
System.Object
  PostSharp.Patterns.Caching.Locking.LocalLockManager

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 sealed class LocalLockManager : ILockManager

The LocalLockManager type exposes the following members.

Constructors
  NameDescription
Public methodLocalLockManager
Initializes a new instance of the LocalLockManager class
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.
See Also