KestrunLockRegistry.Default property

Gets a default semaphore instance that can be used for general synchronization needs when a specific key is not required. This is useful for simple scenarios where a single lock is sufficient to protect a critical section of code or a shared resource without the need for multiple named locks.

public static SemaphoreSlim Default { get; }

See Also