An implementation of ILockManager which does not acquire any lock.
Implements
Namespace: PostSharp.Patterns.Caching.Locking
Assembly: PostSharp.Patterns.Caching.dll
Syntax
public class NullLockManager : ILockManagerRemarks
This is the default value of LockManager. With this lock manager, several threads can evaluate the same cached method with the same arguments at the same time. To prevent this within the current process, use LocalLockManager.
Constructors
| Name | Description |
|---|---|
| NullLockManager() |
Methods
| Name | Description |
|---|---|
| GetLock(string) | Gets a handle to a named lock. This method must return immediately. Waiting, if any, must be done in the Acquire(TimeSpan, CancellationToken) method. |