Open sandboxFocus

Class NullLockManager

An implementation of ILockManager which does not acquire any lock.

Inheritance
NullLockManager
Implements
Namespace: PostSharp.Patterns.Caching.Locking
Assembly: PostSharp.Patterns.Caching.dll
Syntax
public class NullLockManager : ILockManager
Remarks

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.

See Also