8 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.SignalR.StackExchangeRedis.Tests (1)
RedisEndToEnd.cs (1)
385public 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.HttpListener (1)
System\Net\Managed\WebSockets\HttpWebSocket.Managed.cs (1)
109public override Task CloseAsync(
System.Net.WebSockets (1)
System\Net\WebSockets\ManagedWebSocket.cs (1)
387public 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) =>
22 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)
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.SignalR.StackExchangeRedis.Tests (1)
RedisEndToEnd.cs (1)
387return _inner.CloseAsync(closeStatus, statusDescription, cancellationToken);
Microsoft.AspNetCore.TestHost.Tests (6)
TestClientTests.cs (4)
726await websocket.CloseAsync(WebSocketCloseStatus.NormalClosure, "Normal Closure", CancellationToken.None); 805await websocket.CloseAsync(WebSocketCloseStatus.NormalClosure, "Normal Closure", CancellationToken.None); 814await websocket.CloseAsync(WebSocketCloseStatus.InternalServerError, closeReason, CancellationToken.None); 864await websocket.CloseAsync(WebSocketCloseStatus.NormalClosure, "Normal Closure", CancellationToken.None);
WebSocketClientTests.cs (2)
86await websocket.CloseAsync(System.Net.WebSockets.WebSocketCloseStatus.NormalClosure, null, default); 108await 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.HttpListener (1)
System\Net\Managed\WebSockets\HttpWebSocket.Managed.cs (1)
113_inner.CloseAsync(closeStatus, statusDescription, cancellationToken);
System.Net.WebSockets (1)
System\Net\WebSockets\WebSocketStream.cs (1)
274await WebSocket.CloseAsync(WebSocketCloseStatus.NormalClosure, null, ct).ConfigureAwait(ConfigureAwaitOptions.SuppressThrowing);
System.Net.WebSockets.Client (1)
System\Net\WebSockets\ClientWebSocket.cs (1)
161ConnectedWebSocket.CloseAsync(closeStatus, statusDescription, cancellationToken);
System.ServiceModel.Http (1)
System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (1)
345return WebSocket.CloseAsync(_webSocketCloseDetails.OutputCloseStatus, _webSocketCloseDetails.OutputCloseStatusDescription, CancellationToken.None);