Table of Contents

Interface ILock

Namespace
DMediatR
Assembly
DMediatR.dll

Requests resp. notifications can recursively issue the same requests resp. notifications again. Attempting to lock a second time when the handler already holds a lock on that semaphore would cause a deadlock, therefore remember the locks already held for that message chain in the HasLocked set.

public interface ILock
Extension Methods

Properties

HasLocked

To be implemented as public HashSet<SemaphoreSlim>? HasLocked { get; set; } = [];

HashSet<SemaphoreSlim>? HasLocked { get; set; }

Property Value

HashSet<SemaphoreSlim>