32 references to Closed
Microsoft.AspNetCore.Http.Connections (1)
Internal\Transports\WebSocketsServerTransport.cs (1)
304ws.State == WebSocketState.Closed ||
Microsoft.AspNetCore.Http.Connections.Client (1)
Internal\WebSocketsTransport.cs (1)
636ws.State == WebSocketState.Closed ||
Microsoft.AspNetCore.Http.Connections.Tests (2)
TestWebSocketConnectionFeature.cs (2)
126_state = WebSocketState.Closed; 248_state = WebSocketState.Closed;
Microsoft.AspNetCore.Owin (4)
WebSockets\OwinWebSocketAdapter.cs (3)
114_state = WebSocketState.Closed; 163_state = WebSocketState.Closed; 177_state = WebSocketState.Closed;
WebSockets\WebSocketAdapter.cs (1)
123case WebSocketState.Closed: // Closed gracefully, no action needed.
Microsoft.AspNetCore.TestHost (6)
TestWebSocket.cs (6)
83_state = WebSocketState.Closed; 90if (_state >= WebSocketState.Closed) // or Aborted 101if (_state >= WebSocketState.Closed) // or Aborted 106_state = WebSocketState.Closed; 134_state = WebSocketState.Closed; 175ObjectDisposedException.ThrowIf(_state >= WebSocketState.Closed, typeof(TestWebSocket)); // or Aborted
Microsoft.AspNetCore.TestHost.Tests (1)
TestClientTests.cs (1)
638Assert.Equal(WebSocketState.Closed, clientSocket.State);
Microsoft.AspNetCore.WebSockets.Tests (3)
WebSocketMiddlewareTests.cs (3)
424Assert.Equal(WebSocketState.Closed, client.State); 456Assert.Equal(WebSocketState.Closed, client.State); 496Assert.Equal(WebSocketState.Closed, client.State);
System.Net.WebSockets (10)
System\Net\WebSockets\ManagedWebSocket.cs (8)
249_state = WebSocketState.Closed; 468if (state is not WebSocketState.Closed and not WebSocketState.Aborted) 472WebSocketState.Closed; 1074if (_sentCloseFrame && state < WebSocketState.Closed) 1076_state = WebSocketState.Closed; 1437State == WebSocketState.Closed || 1554if (_receivedCloseFrame && state < WebSocketState.Closed) 1556_state = WebSocketState.Closed;
System\Net\WebSockets\ManagedWebSocket.KeepAlive.cs (1)
263if (_parent.State is WebSocketState.Closed)
System\Net\WebSockets\WebSocket.cs (1)
111state == WebSocketState.Closed || state == WebSocketState.Aborted;
System.Net.WebSockets.Client (4)
System\Net\WebSockets\ClientWebSocket.cs (1)
50return WebSocketState.Closed;
System\Net\WebSockets\WebSocketHandle.Managed.cs (3)
39_state = WebSocketState.Closed; 208if (_state < WebSocketState.Closed) 210_state = WebSocketState.Closed;