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( 100monitor.AddConnection( 170monitor.AddConnection( 227monitor.AddConnection( 297monitor.AddConnection("hash1", "socket.hash1", connection); 332monitor.AddConnection("hash1", "socket.hash1", connection); 405monitor.AddConnection("hash1", "socket.hash1", connection); 446monitor.AddConnection("hash1", "socket.hash1", CreateConnection( 492monitor.AddConnection("hash1", "socket.hash1", CreateConnection([.. snapshots])); 508monitor.AddConnection("hash1", "socket.hash1", CreateConnection(new ResourceSnapshot 592monitor.AddConnection("hash1", "socket.hash1", CreateConnection(new ResourceSnapshot { Name = "api", Commands = commands })); 636monitor.AddConnection( 695monitor.AddConnection("hash1", "socket.hash1", CreateConnection(snapshots)); 722monitor.AddConnection( 760monitor.AddConnection( 812monitor.AddConnection( 839monitor.AddConnection( 1012monitor.AddConnection("hash1", "socket.hash1", connection); 1052monitor.AddConnection( 1083monitor.AddConnection("hash1", "socket.hash1", connection); 1123monitor.AddConnection("hash1", "socket.hash1", connection); 1136monitor.AddConnection("hash1", "socket.hash1", CreateConnection("/repo/First/First.AppHost.csproj")); 1137monitor.AddConnection("hash2", "socket.hash2", CreateConnection("/repo/Second/Second.AppHost.csproj")); 1159monitor.AddConnection("hash1", "socket.hash1", CreateConnection("/repo/Other/Other.AppHost.csproj")); 1181monitor.AddConnection("hash1", "socket.hash1", CreateConnection(pinnedAppHostPath)); 1182monitor.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);