Open sandboxFocus

Interface ILockingStrategy

Provides instances of named locks.

Namespace: Metalama.Patterns.Caching.Locking
Assembly: Metalama.Patterns.Caching.Backend.dll
Syntax
public interface ILockingStrategy
Remarks

Two implementations are provided: NullLockingStrategy and 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.

Extension Methods