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