MetalamaAPI documentationPatterns APIMetalama.​Patterns.​Caching.​LockingLocal­Locking­Strategy
Open sandboxFocus

LocalLockingStrategy Class

An implementation of ILockingStrategy in which every instance of the LocalLockingStrategy has its own set of named locks that are not shared in any way with other instances. The LocalLockingStrategy can be used to synchronize the execution of methods in the current process and AppDomain.

Inheritance
System.Object
LocalLockingStrategy
Implements
ILockingStrategy
Namespace: Metalama.Patterns.Caching.Locking
Assembly: Metalama.Patterns.Caching.Backend.dll
Syntax
public sealed class LocalLockingStrategy : Object, ILockingStrategy

Constructors

Name Description
LocalLockingStrategy()

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.