146 references to AddConnection
Aspire.Cli.Tests (146)
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));
Commands\AgentMcpCommandTests.cs (5)
172ctx.BackchannelMonitor!.AddConnection(mockBackchannel.SocketPath, mockBackchannel); 244ctx.BackchannelMonitor!.AddConnection(mockBackchannel.SocketPath, mockBackchannel); 317ctx.BackchannelMonitor!.AddConnection(mockBackchannel.SocketPath, mockBackchannel); 422ctx.BackchannelMonitor!.AddConnection(mockBackchannel.SocketPath, mockBackchannel); 507ctx.BackchannelMonitor!.AddConnection(mockBackchannel.SocketPath, mockBackchannel);
Commands\AppHostLauncherTests.cs (1)
1402Monitor.AddConnection(socketPath, connection);
Commands\DescribeCommandTests.cs (1)
952monitor.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 (15)
145monitor.AddConnection("socket.hash1", connection1); 146monitor.AddConnection("socket.hash2", connection2); 198monitor.AddConnection("socket.hash1", connection); 236monitor.AddConnection("socket.hash1", connection); 282monitor.AddConnection("socket.hash1", connection); 324monitor.AddConnection("socket.hash1", connection); 369monitor.AddConnection("socket.hash1", connection); 402monitor.AddConnection("socket.hash1", connection); 443monitor.AddConnection("socket.hash1", connection); 495monitor.AddConnection("socket.hash1", new TestAppHostAuxiliaryBackchannel 534monitor.AddConnection("socket.hash1", new TestAppHostAuxiliaryBackchannel 608monitor.AddConnection("socket.hash1", connection); 652monitor.AddConnection("socket.hash1", connection); 699monitor.AddConnection("socket.hash1", connection); 738monitor.AddConnection("socket.hash1", connection);
Commands\ResourceCommandTests.cs (23)
215monitor.AddConnection( 218monitor.AddConnection( 531monitor.AddConnection("/tmp/test.sock", backchannel); 558monitor.AddConnection("/tmp/test.sock", backchannel); 595monitor.AddConnection("/tmp/test.sock", backchannel); 630monitor.AddConnection("/tmp/test.sock", backchannel); 668monitor.AddConnection("/tmp/test.sock", backchannel); 701monitor.AddConnection("/tmp/test.sock", backchannel); 728monitor.AddConnection("/tmp/test.sock", backchannel); 755monitor.AddConnection("/tmp/test.sock", backchannel); 782monitor.AddConnection("/tmp/test.sock", backchannel); 809monitor.AddConnection("/tmp/test.sock", backchannel); 865monitor.AddConnection("/tmp/test.sock", backchannel); 929monitor.AddConnection("/tmp/test.sock", backchannel); 1508monitor.AddConnection("/tmp/test.sock", backchannel); 1544monitor.AddConnection("/tmp/test.sock", backchannel); 1579monitor.AddConnection("/tmp/test.sock", backchannel); 1701monitor.AddConnection("/tmp/test.sock", backchannel); 1938monitor.AddConnection("/tmp/test.sock", backchannel); 1994monitor.AddConnection("/tmp/test.sock", backchannel); 2096monitor.AddConnection("/tmp/test.sock", backchannel); 2261monitor.AddConnection("/tmp/test.sock", backchannel); 2323monitor.AddConnection("/tmp/test.sock", backchannel);
Commands\StopCommandTests.cs (16)
127monitor.AddConnection("socket.hash1", CreateConnection(appHostPath1, int.MaxValue - 1)); 128monitor.AddConnection("socket.hash2", CreateConnection(appHostPath2, int.MaxValue - 2)); 163monitor.AddConnection("socket.hash1", CreateConnection(appHostPath, processId1)); 164monitor.AddConnection("socket.hash2", CreateConnection(appHostPath, processId2)); 200monitor.AddConnection(connection.SocketPath, connection); 251monitor.AddConnection(primaryConnection.SocketPath, primaryConnection); 252monitor.AddConnection(nestedConnection.SocketPath, nestedConnection); 327monitor.AddConnection(connection.SocketPath, connection); 366monitor.AddConnection(connection.SocketPath, connection); 402monitor.AddConnection("socket.hash1", CreateConnection(appHostPath1, processId1)); 403monitor.AddConnection("socket.hash2", CreateConnection(appHostPath2, processId2)); 552monitor.AddConnection(connection.SocketPath, connection); 666monitor.AddConnection("socket.hash1", CreateConnection(outOfScopeAppHostFile, int.MaxValue - 12, isInScope: false)); 1094monitor.AddConnection(connection.SocketPath, connection); 1133monitor.AddConnection(connection.SocketPath, connection); 1198monitor.AddConnection(socketPath, connection);
Commands\TelemetryTestHelper.cs (1)
89monitor.AddConnection("socket.hash1", connection);
Commands\TelemetryTracesCommandTests.cs (1)
98monitor.AddConnection("socket.hash1", connection);
Commands\TerminalCommandTests.cs (2)
236monitor.AddConnection("socket.hash1", capturing); 633monitor.AddConnection("socket.hash1", backchannel);
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\AppHostConnectionSelectionLogicTests.cs (7)
28monitor.AddConnection("socket.hash1", inScope); 29monitor.AddConnection("socket.hash2", outOfScope); 43monitor.AddConnection("socket.hash1", inScope); 60monitor.AddConnection("socket.hash1", inScope); 61monitor.AddConnection("socket.hash2", outOfScope); 86monitor.AddConnection("socket.hash1", firstConnection); 87monitor.AddConnection("socket.hash2", secondConnection);
Mcp\ExcludeFromMcpTests.cs (7)
126monitor.AddConnection("socket.hash1", connection); 159monitor.AddConnection("socket.hash1", connection); 191monitor.AddConnection("socket.hash1", connection); 225monitor.AddConnection("socket.hash1", connection); 263monitor.AddConnection("socket.hash1", connection); 404monitor.AddConnection("socket.hash1", connection); 456monitor.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)
39monitor.AddConnection("socket.hash1", connection); 57monitor.AddConnection("socket.hash1", connection); 92monitor.AddConnection("socket.hash1", connection); 126monitor.AddConnection("socket.hash1", connection); 156monitor.AddConnection("socket.hash1", connection); 185monitor.AddConnection("socket.hash1", connection); 216monitor.AddConnection("socket.hash1", connection); 250monitor.AddConnection("socket.hash1", connection); 282monitor.AddConnection("socket.hash1", connection); 316monitor.AddConnection("socket.hash1", connection); 350monitor.AddConnection("socket.hash1", connection); 388monitor.AddConnection("socket.hash1", connection); 425monitor.AddConnection("socket.hash1", connection);
Mcp\ListResourcesToolTests.cs (4)
37monitor.AddConnection("socket.hash1", connection); 82monitor.AddConnection("socket.hash1", connection); 118monitor.AddConnection("socket.hash1", connection); 159monitor.AddConnection("socket.hash1", connection);
Mcp\ListStructuredLogsToolTests.cs (2)
43monitor.AddConnection("socket.hash1", connection); 419monitor.AddConnection("socket.hash1", connection);
Mcp\ListTracesToolTests.cs (1)
461monitor.AddConnection("socket.hash1", connection);
Mcp\SelectAppHostToolTests.cs (1)
39monitor.AddConnection(