NullLockManager.GetLock Method |
Gets a handle to a named lock. This method must return immediately. Waiting, if any, must be done in the Acquire(TimeSpan, CancellationToken) method.
Namespace: PostSharp.Patterns.Caching.Locking
Assembly: PostSharp.Patterns.Caching (in PostSharp.Patterns.Caching.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public ILockHandle GetLock( string key )
Parameters
- key
- Type: System.String
The name of the lock.
Return Value
Type: ILockHandleA handle to the lock named key.