21 references to NormalClosure
Aspire.Dashboard (1)
Terminal\TerminalWebSocketProxy.cs (1)
241await ws.CloseAsync(WebSocketCloseStatus.NormalClosure,
Aspire.Dashboard.Tests (1)
Integration\BlazorWebSocketOriginTests.cs (1)
44await client.CloseAsync(WebSocketCloseStatus.NormalClosure, "Test complete", CancellationToken.None).DefaultTimeout();
Aspire.Hosting.Browsers (1)
BrowserLogsCdpConnection.cs (1)
485await _webSocket.CloseAsync(WebSocketCloseStatus.NormalClosure, "Disposed", closeCts.Token).ConfigureAwait(false);
Aspire.Hosting.Browsers.Tests (3)
BrowserLogsCdpConnectionTests.cs (2)
109await pair.ServerSocket.CloseOutputAsync(WebSocketCloseStatus.NormalClosure, "Done", CancellationToken.None).DefaultTimeout(); 146await pair.ServerSocket.CloseOutputAsync(WebSocketCloseStatus.NormalClosure, "Done", CancellationToken.None).DefaultTimeout();
src\Aspire.Hosting.Browsers\BrowserLogsCdpConnection.cs (1)
485await _webSocket.CloseAsync(WebSocketCloseStatus.NormalClosure, "Disposed", closeCts.Token).ConfigureAwait(false);
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (1)
1311private WebSocketCloseStatus _outputCloseStatus = WebSocketCloseStatus.NormalClosure;
Microsoft.AspNetCore.Http.Connections (1)
Internal\Transports\WebSocketsServerTransport.cs (1)
281await socket.CloseOutputAsync(error != null ? WebSocketCloseStatus.InternalServerError : WebSocketCloseStatus.NormalClosure, "", CancellationToken.None);
Microsoft.AspNetCore.Http.Connections.Client (4)
Internal\WebSocketsTransport.cs (4)
450if (socket.CloseStatus != WebSocketCloseStatus.NormalClosure) 477if (socket.CloseStatus != WebSocketCloseStatus.NormalClosure) 602await socket.CloseOutputAsync(error != null ? WebSocketCloseStatus.InternalServerError : WebSocketCloseStatus.NormalClosure, "", _stopCts.Token).ConfigureAwait(false); 608await socket.CloseAsync(error != null ? WebSocketCloseStatus.InternalServerError : WebSocketCloseStatus.NormalClosure, "", _stopCts.Token).ConfigureAwait(false);
Microsoft.AspNetCore.Owin (2)
WebSockets\WebSocketAdapter.cs (2)
82_environment[OwinConstants.WebSocket.ClientCloseStatus] = (int)(nativeResult.CloseStatus ?? WebSocketCloseStatus.NormalClosure); 128await _webSocket.CloseAsync(_webSocket.CloseStatus ?? WebSocketCloseStatus.NormalClosure,
System.Net.WebSockets (3)
System\Net\WebSockets\ManagedWebSocket.cs (2)
1081WebSocketCloseStatus closeStatus = WebSocketCloseStatus.NormalClosure; 1269case WebSocketCloseStatus.NormalClosure:
System\Net\WebSockets\WebSocketStream.cs (1)
274await WebSocket.CloseAsync(WebSocketCloseStatus.NormalClosure, null, ct).ConfigureAwait(ConfigureAwaitOptions.SuppressThrowing);
System.Net.WebSockets.Client (3)
src\runtime\src\libraries\Common\src\System\Net\WebSockets\WebSocketValidate.cs (1)
70if (closeStatus != WebSocketCloseStatus.NormalClosure && (closeStatusCode < ValidCloseStatusCodesFrom || closeStatusCode > ValidCloseStatusCodesTo))
System\Net\WebSockets\BrowserWebSockets\BrowserWebSocket.cs (2)
488switch (_closeStatus ?? WebSocketCloseStatus.NormalClosure) 490case WebSocketCloseStatus.NormalClosure:
System.ServiceModel.Http (1)
System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (1)
1289internal WebSocketCloseStatus OutputCloseStatus { get; private set; } = WebSocketCloseStatus.NormalClosure;