Open sandboxFocus

Class LocalLockingStrategy

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
LocalLockingStrategy
Implements
Namespace: Metalama.Patterns.Caching.Locking
Assembly: Metalama.Patterns.Caching.Backend.dll
Syntax
public sealed class LocalLockingStrategy : 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.