PostSharpAPI ReferencePost­Sharp.​Patterns.​Caching.​LockingILock­Manager
Open sandboxFocus

ILockManager Interface

Provides instances of named locks.

Namespace: PostSharp.Patterns.Caching.Locking
Assembly: PostSharp.Patterns.Caching.dll
Syntax
public interface ILockManager
Remarks

Two implementations are provided: NullLockManager and LocalLockManager. To change the lock manager, set the LockManager property.

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.