MetalamaAPI documentationPatterns APIMetalama.​Patterns.​Caching.​LockingNull­Locking­StrategyGet­Lock
Open sandboxFocus

NullLockingStrategy.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
public 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.

Implements
ILockingStrategy.GetLock(String)