PostSharpAPI ReferencePost­Sharp.​Patterns.​Caching.​LockingILock­ManagerGet­Lock
Open sandboxFocus

ILockManager.GetLock Method

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.

Declaration
ILockHandle GetLock(string key)
Parameters
Type Name Description
System.String key

The name of the lock.

Returns
Type Description
ILockHandle

A handle to the lock named key.