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