6 overrides of CloseAsync
Microsoft.AspNetCore.Http.Connections.Tests (1)
TestWebSocketConnectionFeature.cs (1)
94public override async Task CloseAsync(WebSocketCloseStatus closeStatus, string statusDescription, CancellationToken cancellationToken)
Microsoft.AspNetCore.Owin (1)
WebSockets\OwinWebSocketAdapter.cs (1)
131public override async Task CloseAsync(WebSocketCloseStatus closeStatus, string statusDescription, CancellationToken cancellationToken)
Microsoft.AspNetCore.SignalR.Client.Tests (1)
WebSocketsTransportTests.cs (1)
55public override Task CloseAsync(WebSocketCloseStatus closeStatus, string statusDescription, CancellationToken cancellationToken)
Microsoft.AspNetCore.TestHost (1)
TestWebSocket.cs (1)
46public override async Task CloseAsync(WebSocketCloseStatus closeStatus, string? statusDescription, CancellationToken cancellationToken)
System.Net.WebSockets (1)
System\Net\WebSockets\ManagedWebSocket.cs (1)
399public override Task CloseAsync(WebSocketCloseStatus closeStatus, string? statusDescription, CancellationToken cancellationToken)
System.Net.WebSockets.Client (1)
System\Net\WebSockets\ClientWebSocket.cs (1)
160public override Task CloseAsync(WebSocketCloseStatus closeStatus, string? statusDescription, CancellationToken cancellationToken) =>
18 references to CloseAsync
AutobahnTestApp (1)
Startup.cs (1)
48await webSocket.CloseAsync(result.CloseStatus.Value, result.CloseStatusDescription, cancellationToken);
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (1)
361return WebSocket.CloseAsync(_webSocketCloseDetails.OutputCloseStatus, _webSocketCloseDetails.OutputCloseStatusDescription, CancellationToken.None);
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)
189await webSocket.CloseAsync(result.CloseStatus.Value, result.CloseStatusDescription, CancellationToken.None);
Interop.FunctionalTests (1)
Http2WebSocketInteropTests.cs (1)
71await ws.CloseAsync(WebSocketCloseStatus.NormalClosure, "Server closed", default);
Microsoft.AspNetCore.Http.Connections.Client (1)
Internal\WebSocketsTransport.cs (1)
608await socket.CloseAsync(error != null ? WebSocketCloseStatus.InternalServerError : WebSocketCloseStatus.NormalClosure, "", _stopCts.Token).ConfigureAwait(false);
Microsoft.AspNetCore.Http.Connections.Tests (1)
WebSocketsTests.cs (1)
412await serverSocket.CloseAsync(WebSocketCloseStatus.NormalClosure, "", default);
Microsoft.AspNetCore.Owin (1)
WebSockets\WebSocketAdapter.cs (1)
128await _webSocket.CloseAsync(_webSocket.CloseStatus ?? WebSocketCloseStatus.NormalClosure,
Microsoft.AspNetCore.TestHost.Tests (6)
TestClientTests.cs (4)
590await websocket.CloseAsync(WebSocketCloseStatus.NormalClosure, "Normal Closure", CancellationToken.None); 658await websocket.CloseAsync(WebSocketCloseStatus.NormalClosure, "Normal Closure", CancellationToken.None); 667await websocket.CloseAsync(WebSocketCloseStatus.InternalServerError, closeReason, 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 (3)
WebSocketCompressionMiddlewareTests.cs (1)
132await webSocket.CloseAsync(WebSocketCloseStatus.NormalClosure, null, default);
WebSocketMiddlewareTests.cs (2)
416await webSocket.CloseAsync(result.CloseStatus.Value, result.CloseStatusDescription, CancellationToken.None); 446await webSocket.CloseAsync(result.CloseStatus.Value, result.CloseStatusDescription, CancellationToken.None);
System.Net.WebSockets.Client (1)
System\Net\WebSockets\ClientWebSocket.cs (1)
161ConnectedWebSocket.CloseAsync(closeStatus, statusDescription, cancellationToken);