Base:
method
CloseAsync
System.Net.WebSockets.WebSocket.CloseAsync(System.Net.WebSockets.WebSocketCloseStatus, System.String, System.Threading.CancellationToken)
5 references to CloseAsync
Interop.FunctionalTests (1)
Http2WebSocketInteropTests.cs (1)
94
await wsClient.
CloseAsync
(WebSocketCloseStatus.NormalClosure, "Client closed", default);
Microsoft.AspNetCore.WebSockets.Tests (4)
WebSocketCompressionMiddlewareTests.cs (1)
163
await client.
CloseAsync
(WebSocketCloseStatus.NormalClosure, null, default);
WebSocketMiddlewareTests.cs (3)
422
await client.
CloseAsync
(WebSocketCloseStatus.NormalClosure, closeDescription, CancellationToken.None);
455
await client.
CloseAsync
(WebSocketCloseStatus.NormalClosure, closeDescription, CancellationToken.None);
494
await client.
CloseAsync
(result.CloseStatus.Value, result.CloseStatusDescription, CancellationToken.None);