25 references to Aborted
Interop.FunctionalTests (1)
Http2WebSocketInteropTests.cs (1)
163Assert.Equal(WebSocketState.Aborted, wsClient.State);
Microsoft.AspNetCore.Http.Connections (1)
Internal\Transports\WebSocketsServerTransport.cs (1)
303return !(ws.State == WebSocketState.Aborted ||
Microsoft.AspNetCore.Http.Connections.Client (1)
Internal\WebSocketsTransport.cs (1)
635return !(ws.State == WebSocketState.Aborted ||
Microsoft.AspNetCore.Http.Connections.Tests (4)
TestWebSocketConnectionFeature.cs (2)
86_state = WebSocketState.Aborted; 178_state = WebSocketState.Aborted;
WebSocketsTests.cs (2)
227Assert.Equal(WebSocketState.Aborted, serverSocket.State); 263Assert.Equal(WebSocketState.Aborted, serverSocket.State);
Microsoft.AspNetCore.Owin (2)
WebSockets\OwinWebSocketAdapter.cs (1)
171_state = WebSocketState.Aborted;
WebSockets\WebSocketAdapter.cs (1)
124case WebSocketState.Aborted: // Closed abortively, no action needed.
Microsoft.AspNetCore.TestHost (1)
TestWebSocket.cs (1)
95_state = WebSocketState.Aborted;
Microsoft.AspNetCore.WebSockets (3)
AbortStream.cs (3)
11/// so that we can call <see cref="HttpContext.Abort"/> when the stream is disposed and the WebSocket is in the <see cref="WebSocketState.Aborted"/> state. 15/// This handles explicit <see cref="WebSocket.Abort"/> calls as well as the Keep-Alive timeout setting <see cref="WebSocketState.Aborted"/> and disposing the stream. 123if (WebSocket?.State == WebSocketState.Aborted)
System.Net.WebSockets (12)
System\Net\WebSockets\ManagedWebSocket.cs (9)
247if (state < WebSocketState.Aborted) 468if (state is not WebSocketState.Closed and not WebSocketState.Aborted) 471WebSocketState.Aborted : 548_state == WebSocketState.Aborted ? CreateOperationCanceledException(exc) : 588throw _state == WebSocketState.Aborted ? 628throw _state == WebSocketState.Aborted ? 1018if (_state == WebSocketState.Aborted) 1029throw new OperationCanceledException(nameof(WebSocketState.Aborted), inner); 1438State == WebSocketState.Aborted,
System\Net\WebSockets\ManagedWebSocket.KeepAlive.cs (1)
273if (_parent.State is WebSocketState.Aborted)
System\Net\WebSockets\WebSocket.cs (1)
111state == WebSocketState.Closed || state == WebSocketState.Aborted;
System\Net\WebSockets\WebSocketStateHelper.cs (1)
36throw new OperationCanceledException(nameof(WebSocketState.Aborted), innerException);