5 references to IsHeld
System.Net.WebSockets (5)
System\Net\WebSockets\ManagedWebSocket.cs (5)
499Debug.Assert(_sendMutex.IsHeld, $"Caller should hold the {nameof(_sendMutex)}"); 1146Debug.Assert(_receiveMutex.IsHeld, $"Expected {nameof(_receiveMutex)} to be held"); 1186Debug.Assert(_receiveMutex.IsHeld, $"Caller should hold the {nameof(_receiveMutex)}"); 1290Debug.Assert(_receiveMutex.IsHeld, $"Caller should hold the {nameof(_receiveMutex)}"); 1650Debug.Assert(_sendMutex.IsHeld, $"Caller should hold the {nameof(_sendMutex)}");