56 references to NormalClosure
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (1)
1311private WebSocketCloseStatus _outputCloseStatus = WebSocketCloseStatus.NormalClosure;
ExceptionHandlerSample (1)
StartupWithWebSocket.cs (1)
33await ws.CloseAsync(System.Net.WebSockets.WebSocketCloseStatus.NormalClosure, "done", context.RequestAborted);
InProcessWebSite (1)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.WebSockets.cs (1)
163await webSocket.CloseOutputAsync(WebSocketCloseStatus.NormalClosure, closeFromServerCmd, CancellationToken.None);
Interop.FunctionalTests (2)
Http2WebSocketInteropTests.cs (2)
71await ws.CloseAsync(WebSocketCloseStatus.NormalClosure, "Server closed", default); 94await wsClient.CloseAsync(WebSocketCloseStatus.NormalClosure, "Client closed", default);
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.Http.Connections.Tests (14)
HttpConnectionDispatcherTests.cs (3)
492await ws.Client.CloseOutputAsync(WebSocketCloseStatus.NormalClosure, "", default); 1465await ws.Client.CloseAsync(WebSocketCloseStatus.NormalClosure, "", CancellationToken.None); 2863await websocket.Client.CloseOutputAsync(WebSocketCloseStatus.NormalClosure, "", cancellationToken: default).DefaultTimeout();
MapConnectionHandlerTests.cs (1)
404await client.CloseOutputAsync(WebSocketCloseStatus.NormalClosure, "", CancellationToken.None).DefaultTimeout();
WebSocketsTests.cs (10)
52await feature.Client.CloseAsync(WebSocketCloseStatus.NormalClosure, "", CancellationToken.None); 67Assert.Equal(WebSocketCloseStatus.NormalClosure, clientSummary.CloseResult.CloseStatus); 100await feature.Client.CloseAsync(WebSocketCloseStatus.NormalClosure, "", CancellationToken.None); 193await feature.Client.CloseAsync(WebSocketCloseStatus.NormalClosure, "", CancellationToken.None); 298await feature.Client.CloseOutputAsync(WebSocketCloseStatus.NormalClosure, null, CancellationToken.None).DefaultTimeout(); 302Assert.Equal(WebSocketCloseStatus.NormalClosure, serverSocket.CloseStatus); 332await feature.Client.CloseOutputAsync(WebSocketCloseStatus.NormalClosure, null, CancellationToken.None).DefaultTimeout(); 341Assert.Equal(WebSocketCloseStatus.NormalClosure, serverSocket.CloseStatus); 386await feature.Client.CloseOutputAsync(WebSocketCloseStatus.NormalClosure, null, CancellationToken.None).DefaultTimeout(); 412await serverSocket.CloseAsync(WebSocketCloseStatus.NormalClosure, "", default);
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,
Microsoft.AspNetCore.SignalR.Tests (5)
EndToEndTests.cs (4)
114await ws.CloseOutputAsync(WebSocketCloseStatus.NormalClosure, "", CancellationToken.None).DefaultTimeout(); 118Assert.Equal(WebSocketCloseStatus.NormalClosure, result.CloseStatus); 153await ws.CloseOutputAsync(WebSocketCloseStatus.NormalClosure, "", CancellationToken.None).DefaultTimeout(); 157Assert.Equal(WebSocketCloseStatus.NormalClosure, result.CloseStatus);
WebSocketsTransportTests.cs (1)
70webSocketMock.Setup(socket => socket.CloseStatus).Returns(WebSocketCloseStatus.NormalClosure);
Microsoft.AspNetCore.TestHost.Tests (6)
TestClientTests.cs (4)
590await websocket.CloseAsync(WebSocketCloseStatus.NormalClosure, "Normal Closure", CancellationToken.None); 620await clientSocket.CloseOutputAsync(WebSocketCloseStatus.NormalClosure, "Normal Closure", CancellationToken.None); 658await websocket.CloseAsync(WebSocketCloseStatus.NormalClosure, "Normal Closure", CancellationToken.None); 712await websocket.CloseAsync(WebSocketCloseStatus.NormalClosure, "Normal Closure", CancellationToken.None);
WebSocketClientTests.cs (2)
73await websocket.CloseAsync(System.Net.WebSockets.WebSocketCloseStatus.NormalClosure, null, default); 90await socket.CloseAsync(System.Net.WebSockets.WebSocketCloseStatus.NormalClosure, null, default);
Microsoft.AspNetCore.WebSockets.Tests (14)
WebSocketCompressionMiddlewareTests.cs (2)
132await webSocket.CloseAsync(WebSocketCloseStatus.NormalClosure, null, default); 163await client.CloseAsync(WebSocketCloseStatus.NormalClosure, null, default);
WebSocketMiddlewareTests.cs (12)
357Assert.Equal(WebSocketCloseStatus.NormalClosure, result.CloseStatus); 364await client.CloseOutputAsync(WebSocketCloseStatus.NormalClosure, closeDescription, CancellationToken.None); 380await webSocket.CloseOutputAsync(WebSocketCloseStatus.NormalClosure, closeDescription, CancellationToken.None); 391Assert.Equal(WebSocketCloseStatus.NormalClosure, result.CloseStatus); 413Assert.Equal(WebSocketCloseStatus.NormalClosure, result.CloseStatus); 422await client.CloseAsync(WebSocketCloseStatus.NormalClosure, closeDescription, CancellationToken.None); 443Assert.Equal(WebSocketCloseStatus.NormalClosure, result.CloseStatus); 452await client.CloseOutputAsync(WebSocketCloseStatus.NormalClosure, closeDescription, CancellationToken.None); 455await client.CloseAsync(WebSocketCloseStatus.NormalClosure, closeDescription, CancellationToken.None); 470await webSocket.CloseOutputAsync(WebSocketCloseStatus.NormalClosure, closeDescription, CancellationToken.None); 477Assert.Equal(WebSocketCloseStatus.NormalClosure, result.CloseStatus); 489Assert.Equal(WebSocketCloseStatus.NormalClosure, result.CloseStatus);
System.Net.WebSockets (2)
System\Net\WebSockets\ManagedWebSocket.cs (2)
953WebSocketCloseStatus closeStatus = WebSocketCloseStatus.NormalClosure; 1096case WebSocketCloseStatus.NormalClosure:
System.ServiceModel.Http (1)
System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (1)
1289internal WebSocketCloseStatus OutputCloseStatus { get; private set; } = WebSocketCloseStatus.NormalClosure;
WebSocketSample (2)
Program.cs (2)
41await ws.CloseOutputAsync(WebSocketCloseStatus.NormalClosure, "", CancellationToken.None); 66await ws.CloseOutputAsync(WebSocketCloseStatus.NormalClosure, "", CancellationToken.None);