30 references to Aborted
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.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)
Microsoft.DotNet.HotReload.Watch (1)
src\sdk\src\Dotnet.Watch\HotReloadClient\WebSocketClientTransport.cs (1)
92=> _clientSocket?.State is System.Net.WebSockets.WebSocketState.Aborted;
System.Net.WebSockets (12)
System\Net\WebSockets\ManagedWebSocket.cs (9)
247if (state < WebSocketState.Aborted) 462if (state is not WebSocketState.Closed and not WebSocketState.Aborted) 465WebSocketState.Aborted : 543_state == WebSocketState.Aborted ? CreateOperationCanceledException(exc) : 583throw _state == WebSocketState.Aborted ? 623throw _state == WebSocketState.Aborted ? 1014if (_state == WebSocketState.Aborted) 1025throw new OperationCanceledException(nameof(WebSocketState.Aborted), inner); 1459State == WebSocketState.Aborted,
System\Net\WebSockets\ManagedWebSocket.KeepAlive.cs (1)
227if (_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);
System.Net.WebSockets.Client (9)
System\Net\WebSockets\BrowserWebSockets\BrowserWebSocket.cs (8)
40if (_innerWebSocket == null || _disposed || _state == WebSocketState.Aborted || _state == WebSocketState.Closed) 212if (fastState == WebSocketState.Closed || fastState == WebSocketState.Aborted) 217FastState = WebSocketState.Aborted; 241FastState = WebSocketState.Aborted; 243else if (state != WebSocketState.Aborted) 584if (state == WebSocketState.Aborted) 586throw new OperationCanceledException(nameof(WebSocketState.Aborted), ex); 592FastState = WebSocketState.Aborted;
System\Net\WebSockets\WebSocketHandle.Browser.cs (1)
33_state = WebSocketState.Aborted;