53 references to NormalClosure
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (1)
1311
private WebSocketCloseStatus _outputCloseStatus = WebSocketCloseStatus.
NormalClosure
;
ExceptionHandlerSample (1)
StartupWithWebSocket.cs (1)
33
await ws.CloseAsync(System.Net.WebSockets.WebSocketCloseStatus.
NormalClosure
, "done", context.RequestAborted);
InProcessWebSite (1)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.WebSockets.cs (1)
202
await webSocket.CloseOutputAsync(WebSocketCloseStatus.
NormalClosure
, "CloseFromServer", CancellationToken.None);
Interop.FunctionalTests (2)
Http2WebSocketInteropTests.cs (2)
71
await ws.CloseAsync(WebSocketCloseStatus.
NormalClosure
, "Server closed", default);
94
await wsClient.CloseAsync(WebSocketCloseStatus.
NormalClosure
, "Client closed", default);
Microsoft.AspNetCore.Http.Connections (1)
Internal\Transports\WebSocketsServerTransport.cs (1)
281
await socket.CloseOutputAsync(error != null ? WebSocketCloseStatus.InternalServerError : WebSocketCloseStatus.
NormalClosure
, "", CancellationToken.None);
Microsoft.AspNetCore.Http.Connections.Client (4)
Internal\WebSocketsTransport.cs (4)
450
if (socket.CloseStatus != WebSocketCloseStatus.
NormalClosure
)
477
if (socket.CloseStatus != WebSocketCloseStatus.
NormalClosure
)
602
await socket.CloseOutputAsync(error != null ? WebSocketCloseStatus.InternalServerError : WebSocketCloseStatus.
NormalClosure
, "", _stopCts.Token).ConfigureAwait(false);
608
await socket.CloseAsync(error != null ? WebSocketCloseStatus.InternalServerError : WebSocketCloseStatus.
NormalClosure
, "", _stopCts.Token).ConfigureAwait(false);
Microsoft.AspNetCore.Http.Connections.Tests (14)
HttpConnectionDispatcherTests.cs (3)
492
await ws.Client.CloseOutputAsync(WebSocketCloseStatus.
NormalClosure
, "", default);
1465
await ws.Client.CloseAsync(WebSocketCloseStatus.
NormalClosure
, "", CancellationToken.None);
2863
await websocket.Client.CloseOutputAsync(WebSocketCloseStatus.
NormalClosure
, "", cancellationToken: default).DefaultTimeout();
MapConnectionHandlerTests.cs (1)
404
await client.CloseOutputAsync(WebSocketCloseStatus.
NormalClosure
, "", CancellationToken.None).DefaultTimeout();
WebSocketsTests.cs (10)
52
await feature.Client.CloseAsync(WebSocketCloseStatus.
NormalClosure
, "", CancellationToken.None);
67
Assert.Equal(WebSocketCloseStatus.
NormalClosure
, clientSummary.CloseResult.CloseStatus);
100
await feature.Client.CloseAsync(WebSocketCloseStatus.
NormalClosure
, "", CancellationToken.None);
193
await feature.Client.CloseAsync(WebSocketCloseStatus.
NormalClosure
, "", CancellationToken.None);
298
await feature.Client.CloseOutputAsync(WebSocketCloseStatus.
NormalClosure
, null, CancellationToken.None).DefaultTimeout();
302
Assert.Equal(WebSocketCloseStatus.
NormalClosure
, serverSocket.CloseStatus);
332
await feature.Client.CloseOutputAsync(WebSocketCloseStatus.
NormalClosure
, null, CancellationToken.None).DefaultTimeout();
341
Assert.Equal(WebSocketCloseStatus.
NormalClosure
, serverSocket.CloseStatus);
386
await feature.Client.CloseOutputAsync(WebSocketCloseStatus.
NormalClosure
, null, CancellationToken.None).DefaultTimeout();
412
await serverSocket.CloseAsync(WebSocketCloseStatus.
NormalClosure
, "", default);
Microsoft.AspNetCore.Owin (2)
WebSockets\WebSocketAdapter.cs (2)
82
_environment[OwinConstants.WebSocket.ClientCloseStatus] = (int)(nativeResult.CloseStatus ?? WebSocketCloseStatus.
NormalClosure
);
128
await _webSocket.CloseAsync(_webSocket.CloseStatus ?? WebSocketCloseStatus.
NormalClosure
,
Microsoft.AspNetCore.SignalR.Tests (5)
EndToEndTests.cs (4)
114
await ws.CloseOutputAsync(WebSocketCloseStatus.
NormalClosure
, "", CancellationToken.None).DefaultTimeout();
118
Assert.Equal(WebSocketCloseStatus.
NormalClosure
, result.CloseStatus);
153
await ws.CloseOutputAsync(WebSocketCloseStatus.
NormalClosure
, "", CancellationToken.None).DefaultTimeout();
157
Assert.Equal(WebSocketCloseStatus.
NormalClosure
, result.CloseStatus);
WebSocketsTransportTests.cs (1)
70
webSocketMock.Setup(socket => socket.CloseStatus).Returns(WebSocketCloseStatus.
NormalClosure
);
Microsoft.AspNetCore.TestHost.Tests (6)
TestClientTests.cs (4)
590
await websocket.CloseAsync(WebSocketCloseStatus.
NormalClosure
, "Normal Closure", CancellationToken.None);
620
await clientSocket.CloseOutputAsync(WebSocketCloseStatus.
NormalClosure
, "Normal Closure", CancellationToken.None);
658
await websocket.CloseAsync(WebSocketCloseStatus.
NormalClosure
, "Normal Closure", CancellationToken.None);
712
await websocket.CloseAsync(WebSocketCloseStatus.
NormalClosure
, "Normal Closure", CancellationToken.None);
WebSocketClientTests.cs (2)
73
await websocket.CloseAsync(System.Net.WebSockets.WebSocketCloseStatus.
NormalClosure
, null, default);
90
await socket.CloseAsync(System.Net.WebSockets.WebSocketCloseStatus.
NormalClosure
, null, default);
Microsoft.AspNetCore.WebSockets.Tests (14)
WebSocketCompressionMiddlewareTests.cs (2)
132
await webSocket.CloseAsync(WebSocketCloseStatus.
NormalClosure
, null, default);
163
await client.CloseAsync(WebSocketCloseStatus.
NormalClosure
, null, default);
WebSocketMiddlewareTests.cs (12)
357
Assert.Equal(WebSocketCloseStatus.
NormalClosure
, result.CloseStatus);
364
await client.CloseOutputAsync(WebSocketCloseStatus.
NormalClosure
, closeDescription, CancellationToken.None);
380
await webSocket.CloseOutputAsync(WebSocketCloseStatus.
NormalClosure
, closeDescription, CancellationToken.None);
391
Assert.Equal(WebSocketCloseStatus.
NormalClosure
, result.CloseStatus);
413
Assert.Equal(WebSocketCloseStatus.
NormalClosure
, result.CloseStatus);
422
await client.CloseAsync(WebSocketCloseStatus.
NormalClosure
, closeDescription, CancellationToken.None);
443
Assert.Equal(WebSocketCloseStatus.
NormalClosure
, result.CloseStatus);
452
await client.CloseOutputAsync(WebSocketCloseStatus.
NormalClosure
, closeDescription, CancellationToken.None);
455
await client.CloseAsync(WebSocketCloseStatus.
NormalClosure
, closeDescription, CancellationToken.None);
470
await webSocket.CloseOutputAsync(WebSocketCloseStatus.
NormalClosure
, closeDescription, CancellationToken.None);
477
Assert.Equal(WebSocketCloseStatus.
NormalClosure
, result.CloseStatus);
489
Assert.Equal(WebSocketCloseStatus.
NormalClosure
, result.CloseStatus);
WebSocketSample (2)
Program.cs (2)
41
await ws.CloseOutputAsync(WebSocketCloseStatus.
NormalClosure
, "", CancellationToken.None);
66
await ws.CloseOutputAsync(WebSocketCloseStatus.
NormalClosure
, "", CancellationToken.None);