91 references to AddConnection
Aspire.Cli.Tests (91)
Commands\AgentMcpCommandTests.cs (22)
176ctx.BackchannelMonitor!.AddConnection(connection.Hash, connection.SocketPath, connection); 337ctx.BackchannelMonitor!.AddConnection(connection.Hash, connection.SocketPath, connection); 478ctx.BackchannelMonitor!.AddConnection(appHostA.Hash, appHostA.SocketPath, appHostA); 479ctx.BackchannelMonitor.AddConnection(appHostB.Hash, appHostB.SocketPath, appHostB); 590ctx.BackchannelMonitor!.AddConnection(connection.Hash, connection.SocketPath, connection); 738ctx.BackchannelMonitor!.AddConnection(unrelatedConnection.Hash, unrelatedConnection.SocketPath, unrelatedConnection); 741ctx.BackchannelMonitor.AddConnection(pinnedConnection.Hash, pinnedConnection.SocketPath, pinnedConnection); 857ctx.BackchannelMonitor!.AddConnection( 861ctx.BackchannelMonitor.AddConnection( 952ctx.BackchannelMonitor!.AddConnection(connection.Hash, connection.SocketPath, connection); 983ctx.BackchannelMonitor!.AddConnection( 1018ctx.BackchannelMonitor!.AddConnection( 1095ctx.BackchannelMonitor!.AddConnection(connection.Hash, connection.SocketPath, connection); 1144ctx.BackchannelMonitor!.AddConnection(connection.Hash, connection.SocketPath, connection); 1176ctx.BackchannelMonitor!.AddConnection(connection.Hash, connection.SocketPath, connection); 1300ctx.BackchannelMonitor!.AddConnection(connection.Hash, connection.SocketPath, connection); 1339ctx.BackchannelMonitor!.AddConnection(connection.Hash, connection.SocketPath, connection); 1456ctx.BackchannelMonitor!.AddConnection(connection.Hash, connection.SocketPath, connection); 1480ctx.BackchannelMonitor!.AddConnection(connectionA.Hash, connectionA.SocketPath, connectionA); 1491ctx.BackchannelMonitor.AddConnection(connectionB.Hash, connectionB.SocketPath, connectionB); 1512ctx.BackchannelMonitor!.AddConnection(connectionA.Hash, connectionA.SocketPath, connectionA); 1525ctx.BackchannelMonitor.AddConnection(connectionB.Hash, connectionB.SocketPath, connectionB);
Mcp\AppHostConnectionSelectionLogicTests.cs (19)
38monitor.AddConnection(inScope.Hash, inScope.SocketPath, inScope); 39monitor.AddConnection(outOfScope.Hash, outOfScope.SocketPath, outOfScope); 50monitor.AddConnection(inScope.Hash, inScope.SocketPath, inScope); 65monitor.AddConnection(inScope.Hash, inScope.SocketPath, inScope); 66monitor.AddConnection(outOfScope.Hash, outOfScope.SocketPath, outOfScope); 90monitor.AddConnection(firstConnection.Hash, firstConnection.SocketPath, firstConnection); 91monitor.AddConnection(secondConnection.Hash, secondConnection.SocketPath, secondConnection); 161monitor.AddConnection(connection.Hash, connection.SocketPath, connection); 189monitor.AddConnection("hash1", "socket.hash1", inScope); 190monitor.AddConnection("hash2", "socket.hash2", outOfScope); 215monitor.AddConnection(connection.Hash, connection.SocketPath, connection); 242monitor.AddConnection(cachedUnrelated.Hash, cachedUnrelated.SocketPath, cachedUnrelated); 246monitor.AddConnection(selectedConnection.Hash, selectedConnection.SocketPath, selectedConnection); 264monitor.AddConnection("hash1", "socket.hash1", inScope); 284monitor.AddConnection("hash1", "socket.hash1", CreateConnection("C:/repo/AppHost", isInScope: true, processId: 41)); 285monitor.AddConnection("hash2", "socket.hash2", CreateConnection("C:/repo/AppHost", isInScope: true, processId: 42)); 304monitor.AddConnection("hash2", "socket.hash2", outOfScope); 323monitor.AddConnection("hash1", "socket.hash1", CreateConnection(appHostPath: "C:/repo/AppHost1", isInScope: true, processId: 1)); 324monitor.AddConnection("hash2", "socket.hash2", CreateConnection(appHostPath: "C:/repo/AppHost2", isInScope: true, processId: 2));
Mcp\ListConsoleLogsToolTests.cs (2)
59monitor.AddConnection("hash1", "socket.hash1", connection); 106monitor.AddConnection("hash1", "socket.hash1", connection);
Mcp\ListResourcesToolTests.cs (28)
41monitor.AddConnection("hash1", "socket.hash1", connection); 57monitor.AddConnection("hash1", "socket.hash1", CreateConnection()); 73monitor.AddConnection( 98monitor.AddConnection( 168monitor.AddConnection( 225monitor.AddConnection( 295monitor.AddConnection("hash1", "socket.hash1", connection); 330monitor.AddConnection("hash1", "socket.hash1", connection); 403monitor.AddConnection("hash1", "socket.hash1", connection); 444monitor.AddConnection("hash1", "socket.hash1", CreateConnection( 490monitor.AddConnection("hash1", "socket.hash1", CreateConnection([.. snapshots])); 506monitor.AddConnection("hash1", "socket.hash1", CreateConnection(new ResourceSnapshot 590monitor.AddConnection("hash1", "socket.hash1", CreateConnection(new ResourceSnapshot { Name = "api", Commands = commands })); 634monitor.AddConnection( 693monitor.AddConnection("hash1", "socket.hash1", CreateConnection(snapshots)); 720monitor.AddConnection( 758monitor.AddConnection( 810monitor.AddConnection( 837monitor.AddConnection( 1010monitor.AddConnection("hash1", "socket.hash1", connection); 1050monitor.AddConnection( 1080monitor.AddConnection("hash1", "socket.hash1", connection); 1120monitor.AddConnection("hash1", "socket.hash1", connection); 1133monitor.AddConnection("hash1", "socket.hash1", CreateConnection("/repo/First/First.AppHost.csproj")); 1134monitor.AddConnection("hash2", "socket.hash2", CreateConnection("/repo/Second/Second.AppHost.csproj")); 1156monitor.AddConnection("hash1", "socket.hash1", CreateConnection("/repo/Other/Other.AppHost.csproj")); 1178monitor.AddConnection("hash1", "socket.hash1", CreateConnection(pinnedAppHostPath)); 1179monitor.AddConnection("hash2", "socket.hash2", CreateConnection(pinnedAppHostPath));
Mcp\SelectAppHostToolTests.cs (5)
42monitor.AddConnection(connection.Hash, connection.SocketPath, connection); 91monitor.AddConnection(connection.Hash, connection.SocketPath, connection); 117monitor.AddConnection(connection.Hash, connection.SocketPath, connection); 158monitor.AddConnection(firstConnection.Hash, firstConnection.SocketPath, firstConnection); 159monitor.AddConnection(secondConnection.Hash, secondConnection.SocketPath, secondConnection);
Mcp\WaitForResourcesToolTests.cs (15)
122monitor.AddConnection(connection.Hash, connection.SocketPath, connection); 164monitor.AddConnection(connection.Hash, connection.SocketPath, connection); 200monitor.AddConnection(connection.Hash, connection.SocketPath, connection); 229monitor.AddConnection(connection.Hash, connection.SocketPath, connection); 278monitor.AddConnection(connection.Hash, connection.SocketPath, connection); 329monitor.AddConnection(connection.Hash, connection.SocketPath, connection); 398monitor.AddConnection(connection.Hash, connection.SocketPath, connection); 491monitor.AddConnection(connection.Hash, connection.SocketPath, connection); 547monitor.AddConnection(connection.Hash, connection.SocketPath, connection); 585monitor.AddConnection(connection.Hash, connection.SocketPath, connection); 627monitor.AddConnection(connection.Hash, connection.SocketPath, connection); 676monitor.AddConnection(connection.Hash, connection.SocketPath, connection); 706monitor.AddConnection(connection.Hash, connection.SocketPath, connection); 759monitor.AddConnection(connection.Hash, connection.SocketPath, connection); 779monitor.AddConnection(connection.Hash, connection.SocketPath, connection);