1 instantiation of WebSocketConnection
Microsoft.WebTools.AspireService.Tests (1)
SocketConnectionManager.cs (1)
53var newConnection = new WebSocketConnection(socket, tcs, dcpId, httpRequestAborted);
7 references to WebSocketConnection
Microsoft.WebTools.AspireService.Tests (7)
AspireServerService.cs (1)
379WebSocketConnection? connection = _socketConnectionManager.GetSocketConnection(dcpId);
SocketConnectionManager.cs (6)
22private readonly Dictionary<string, WebSocketConnection> _webSocketConnections = new(StringComparer.Ordinal); 44if (_webSocketConnections.TryGetValue(dcpId, out var existingConnection)) 53var newConnection = new WebSocketConnection(socket, tcs, dcpId, httpRequestAborted); 63public void RemoveSocketConnection(WebSocketConnection connection) 72public WebSocketConnection? GetSocketConnection(string dcpId) 76_webSocketConnections.TryGetValue(dcpId, out var connection);