162 references to AddConnection
Aspire.Cli.Tests (162)
Backchannel\AppHostConnectionResolverTests.cs (7)
215monitor.AddConnection("socket-other", new TestAppHostAuxiliaryBackchannel { IsInScope = false }); 245monitor.AddConnection("socket-one", new TestAppHostAuxiliaryBackchannel { IsInScope = true }); 246monitor.AddConnection("socket-two", new TestAppHostAuxiliaryBackchannel { IsInScope = true }); 386monitor.AddConnection("socket-sibling", connection); 419monitor.AddConnection("socket-worktree", CreateOutOfScopeConnection(appHostPath)); 460monitor.AddConnection("socket-worktree", connection); 496monitor.AddConnection("socket-sibling", CreateOutOfScopeConnection(appHostPath));
Backchannel\OrphanedAppHostCollectorTests.cs (8)
206monitor.AddConnection(orphanSocket, CreateConnection(orphanSocket, appHostPid: 4242, orphaned: true)); 207monitor.AddConnection(liveSocket, CreateConnection(liveSocket, appHostPid: 4343, orphaned: false)); 236monitor.AddConnection(socketPath, CreateConnection(socketPath, appHostPid: 4242, orphaned: true)); 262monitor.AddConnection(socketPath, CreateConnection(socketPath, appHostPid: 4242, orphaned: true)); 288monitor.AddConnection(throwingSocket, CreateConnection(throwingSocket, appHostPid: 1, orphaned: true)); 289monitor.AddConnection(okSocket, CreateConnection(okSocket, appHostPid: 2, orphaned: true)); 318monitor.AddConnection(socketPath, CreateConnection(socketPath, appHostPid: 4343, orphaned: false)); 341monitor.AddConnection(socketPath, CreateConnection(socketPath, appHostPid: 4242, orphaned: true));
Backchannel\TrayWatchStreamTests.cs (8)
206monitor.AddConnection(connection.SocketPath, connection); 212monitor.AddConnection(connection.SocketPath, connection); 341monitor.AddConnection(hung.SocketPath, hung); 342monitor.AddConnection(healthy.SocketPath, healthy); 396monitor.AddConnection(connection.SocketPath, connection); 526monitor.AddConnection(connection.SocketPath, connection); 645monitor.AddConnection(connection.SocketPath, connection); 770monitor.AddConnection(connection.SocketPath, connection);
Commands\AgentMcpCommandTests.cs (5)
264ctx.BackchannelMonitor!.AddConnection(mockBackchannel.SocketPath, mockBackchannel); 410ctx.BackchannelMonitor!.AddConnection(mockBackchannel.SocketPath, mockBackchannel); 542ctx.BackchannelMonitor!.AddConnection(mockBackchannel.SocketPath, mockBackchannel); 1226ctx.BackchannelMonitor!.AddConnection(mockBackchannel.SocketPath, mockBackchannel); 1429ctx.BackchannelMonitor!.AddConnection(mockBackchannel.SocketPath, mockBackchannel);
Commands\AppHostLauncherTests.cs (1)
1402Monitor.AddConnection(socketPath, connection);
Commands\DescribeCommandTests.cs (1)
1105monitor.AddConnection("socket.hash1", connection);
Commands\ExportCommandTests.cs (3)
207monitor.AddConnection("socket.hash-other", outOfScopeConnection); 234monitor.AddConnection("socket.hash-target", targetConnection); 895monitor.AddConnection("socket.hash1", connection);
Commands\LogsCommandTests.cs (4)
773monitor.AddConnection("socket.hash1", connection); 882monitor.AddConnection("socket.hash1", connection); 1023monitor.AddConnection("socket.hash1", connection); 1604monitor.AddConnection("socket.hash1", connection);
Commands\PsCommandTests.cs (16)
150monitor.AddConnection("socket.hash1", connection1); 151monitor.AddConnection("socket.hash2", connection2); 203monitor.AddConnection("socket.hash1", connection); 241monitor.AddConnection("socket.hash1", connection); 287monitor.AddConnection("socket.hash1", connection); 329monitor.AddConnection("socket.hash1", connection); 374monitor.AddConnection("socket.hash1", connection); 407monitor.AddConnection("socket.hash1", connection); 448monitor.AddConnection("socket.hash1", connection); 500monitor.AddConnection("socket.hash1", new TestAppHostAuxiliaryBackchannel 539monitor.AddConnection("socket.hash1", new TestAppHostAuxiliaryBackchannel 580monitor.AddConnection("socket.hash1", new TestAppHostAuxiliaryBackchannel 682monitor.AddConnection("socket.hash1", connection); 726monitor.AddConnection("socket.hash1", connection); 773monitor.AddConnection("socket.hash1", connection); 812monitor.AddConnection("socket.hash1", connection);
Commands\ResourceCommandTests.cs (23)
215monitor.AddConnection( 218monitor.AddConnection( 573monitor.AddConnection("/tmp/test.sock", backchannel); 600monitor.AddConnection("/tmp/test.sock", backchannel); 637monitor.AddConnection("/tmp/test.sock", backchannel); 672monitor.AddConnection("/tmp/test.sock", backchannel); 710monitor.AddConnection("/tmp/test.sock", backchannel); 743monitor.AddConnection("/tmp/test.sock", backchannel); 770monitor.AddConnection("/tmp/test.sock", backchannel); 797monitor.AddConnection("/tmp/test.sock", backchannel); 824monitor.AddConnection("/tmp/test.sock", backchannel); 851monitor.AddConnection("/tmp/test.sock", backchannel); 907monitor.AddConnection("/tmp/test.sock", backchannel); 971monitor.AddConnection("/tmp/test.sock", backchannel); 1550monitor.AddConnection("/tmp/test.sock", backchannel); 1586monitor.AddConnection("/tmp/test.sock", backchannel); 1621monitor.AddConnection("/tmp/test.sock", backchannel); 1743monitor.AddConnection("/tmp/test.sock", backchannel); 1980monitor.AddConnection("/tmp/test.sock", backchannel); 2036monitor.AddConnection("/tmp/test.sock", backchannel); 2138monitor.AddConnection("/tmp/test.sock", backchannel); 2303monitor.AddConnection("/tmp/test.sock", backchannel); 2365monitor.AddConnection("/tmp/test.sock", backchannel);
Commands\StopCommandTests.cs (27)
75monitor.AddConnection(selected.SocketPath, selected); 76monitor.AddConnection(sibling.SocketPath, sibling); 126monitor.AddConnection(connection.SocketPath, connection); 127monitor.AddConnection(sibling.SocketPath, sibling); 191monitor.AddConnection(connection.SocketPath, connection); 238monitor.AddConnection(selected.SocketPath, selected); 239monitor.AddConnection(sibling.SocketPath, sibling); 269monitor.AddConnection(selected.SocketPath, selected); 276monitor.AddConnection(replacement.SocketPath, replacement); 308monitor.AddConnection(first.SocketPath, first); 309monitor.AddConnection(second.SocketPath, second); 392monitor.AddConnection("socket.hash1", CreateConnection(appHostPath1, int.MaxValue - 1)); 393monitor.AddConnection("socket.hash2", CreateConnection(appHostPath2, int.MaxValue - 2)); 428monitor.AddConnection("socket.hash1", CreateConnection(appHostPath, processId1)); 429monitor.AddConnection("socket.hash2", CreateConnection(appHostPath, processId2)); 465monitor.AddConnection(connection.SocketPath, connection); 516monitor.AddConnection(primaryConnection.SocketPath, primaryConnection); 517monitor.AddConnection(nestedConnection.SocketPath, nestedConnection); 592monitor.AddConnection(connection.SocketPath, connection); 631monitor.AddConnection(connection.SocketPath, connection); 667monitor.AddConnection("socket.hash1", CreateConnection(appHostPath1, processId1)); 668monitor.AddConnection("socket.hash2", CreateConnection(appHostPath2, processId2)); 820monitor.AddConnection(connection.SocketPath, connection); 934monitor.AddConnection("socket.hash1", CreateConnection(outOfScopeAppHostFile, int.MaxValue - 12, isInScope: false)); 1368monitor.AddConnection(connection.SocketPath, connection); 1407monitor.AddConnection(connection.SocketPath, connection); 1494monitor.AddConnection(socketPath, connection);
Commands\TelemetryFollowTests.cs (1)
236monitor.AddConnection("test", new TestAppHostAuxiliaryBackchannel
Commands\TelemetryTestHelper.cs (1)
89monitor.AddConnection("socket.hash1", connection);
Commands\TelemetryTracesCommandTests.cs (1)
98monitor.AddConnection("socket.hash1", connection);
Commands\TerminalCommandTests.cs (1)
236monitor.AddConnection("socket.hash1", capturing);
Commands\TrayProtocolCommandTests.cs (6)
147monitor.AddConnection("selected", selected); 148monitor.AddConnection("sibling", sibling); 159monitor.AddConnection("replacement", replacement); 169monitor.AddConnection("duplicate", Connection(path, int.MaxValue)); 268monitor.AddConnection("selected", selected); 269monitor.AddConnection("sibling", sibling);
Commands\WaitCommandTests.cs (7)
153monitor.AddConnection("/tmp/test.sock", backchannel); 194monitor.AddConnection("/tmp/test.sock", backchannel); 233monitor.AddConnection("/tmp/test.sock", backchannel); 263monitor.AddConnection("/tmp/test.sock", backchannel); 301monitor.AddConnection("/tmp/test.sock", backchannel); 331monitor.AddConnection("/tmp/test.sock", backchannel); 373monitor.AddConnection("/tmp/test.sock", backchannel);
Mcp\ExcludeFromMcpTests.cs (7)
137monitor.AddConnection("socket.hash1", connection); 179monitor.AddConnection("socket.hash1", connection); 225monitor.AddConnection("socket.hash1", connection); 259monitor.AddConnection("socket.hash1", connection); 297monitor.AddConnection("socket.hash1", connection); 438monitor.AddConnection("socket.hash1", connection); 490monitor.AddConnection("socket.hash1", connection);
Mcp\ExecuteResourceCommandToolTests.cs (13)
60monitor.AddConnection("socket.hash1", connection); 83monitor.AddConnection("socket.hash1", connection); 104monitor.AddConnection("socket.hash1", connection); 127monitor.AddConnection("socket.hash1", connection); 146monitor.AddConnection("socket.hash1", connection); 167monitor.AddConnection("socket.hash1", connection); 190monitor.AddConnection("socket.hash1", connection); 220monitor.AddConnection("socket.hash1", connection); 244monitor.AddConnection("socket.hash1", connection); 262monitor.AddConnection("socket.hash1", connection); 284monitor.AddConnection("socket.hash1", connection); 317monitor.AddConnection("socket.hash1", connection); 343monitor.AddConnection("socket.hash1", connection);
Mcp\ListAppHostsToolTests.cs (4)
55monitor.AddConnection("socket.hash1", connection); 87monitor.AddConnection("socket.hash2", connection); 119monitor.AddConnection("socket.hash1", inScopeConnection); 130monitor.AddConnection("socket.hash2", outOfScopeConnection);
Mcp\ListConsoleLogsToolTests.cs (13)
41monitor.AddConnection("socket.hash1", connection); 139monitor.AddConnection("socket.hash1", connection); 174monitor.AddConnection("socket.hash1", connection); 208monitor.AddConnection("socket.hash1", connection); 238monitor.AddConnection("socket.hash1", connection); 267monitor.AddConnection("socket.hash1", connection); 298monitor.AddConnection("socket.hash1", connection); 332monitor.AddConnection("socket.hash1", connection); 364monitor.AddConnection("socket.hash1", connection); 398monitor.AddConnection("socket.hash1", connection); 432monitor.AddConnection("socket.hash1", connection); 470monitor.AddConnection("socket.hash1", connection); 507monitor.AddConnection("socket.hash1", connection);
Mcp\ListStructuredLogsToolTests.cs (2)
46monitor.AddConnection("socket.hash1", connection); 531monitor.AddConnection("socket.hash1", connection);
Mcp\ListTracesToolTests.cs (1)
525monitor.AddConnection("socket.hash1", connection);
TestServices\TerminalCommandTestServices.cs (1)
30monitor.AddConnection("socket.hash1", backchannel);
TestServices\TestAuxiliaryBackchannelMonitor.cs (1)
99AddConnection(socketPath, connection);