1 write to BackchannelMonitor
Aspire.Cli.Tests (1)
Commands\AgentMcpCommandTests.cs (1)
112BackchannelMonitor = backchannelMonitor
42 references to BackchannelMonitor
Aspire.Cli.Tests (42)
Commands\AgentMcpCommandTests.cs (42)
176ctx.BackchannelMonitor!.AddConnection(connection.Hash, connection.SocketPath, connection); 264ctx.BackchannelMonitor!.AddConnection(mockBackchannel.SocketPath, mockBackchannel); 337ctx.BackchannelMonitor!.AddConnection(connection.Hash, connection.SocketPath, connection); 410ctx.BackchannelMonitor!.AddConnection(mockBackchannel.SocketPath, mockBackchannel); 475ctx.BackchannelMonitor!.SelectedAppHostPath = appHostBPath; 478ctx.BackchannelMonitor!.AddConnection(appHostA.Hash, appHostA.SocketPath, appHostA); 479ctx.BackchannelMonitor.AddConnection(appHostB.Hash, appHostB.SocketPath, appHostB); 480ctx.BackchannelMonitor.SelectedAppHostPath = appHostAPath; 489Assert.Equal(appHostBPath, ctx.BackchannelMonitor.SelectedAppHostPath); 542ctx.BackchannelMonitor!.AddConnection(mockBackchannel.SocketPath, mockBackchannel); 590ctx.BackchannelMonitor!.AddConnection(connection.Hash, connection.SocketPath, connection); 738ctx.BackchannelMonitor!.AddConnection(unrelatedConnection.Hash, unrelatedConnection.SocketPath, unrelatedConnection); 739ctx.BackchannelMonitor.ScanAsyncCallback = _ => 741ctx.BackchannelMonitor.AddConnection(pinnedConnection.Hash, pinnedConnection.SocketPath, pinnedConnection); 767Assert.Equal(1, ctx.BackchannelMonitor.ScanCallCount); 769ctx.BackchannelMonitor.SelectedAppHostPath = unrelatedConnection.AppHostInfo!.AppHostPath; 776Assert.Equal(appHostPath, ctx.BackchannelMonitor.SelectedAppHostPath); 857ctx.BackchannelMonitor!.AddConnection( 861ctx.BackchannelMonitor.AddConnection( 869ctx.BackchannelMonitor.SelectedAppHostPath = unrelatedPath; 880ctx.BackchannelMonitor.SelectedAppHostPath = unrelatedPath; 901Assert.Equal(appHostPath, ctx.BackchannelMonitor.SelectedAppHostPath); 952ctx.BackchannelMonitor!.AddConnection(connection.Hash, connection.SocketPath, connection); 963ctx.BackchannelMonitor.RemoveConnection(connection.Hash, connection.SocketPath); 983ctx.BackchannelMonitor!.AddConnection( 999ctx.BackchannelMonitor.ScanAsyncCallback = cancellationToken => 1018ctx.BackchannelMonitor!.AddConnection( 1040Assert.Equal(1, ctx.BackchannelMonitor.ScanCallCount); 1095ctx.BackchannelMonitor!.AddConnection(connection.Hash, connection.SocketPath, connection); 1144ctx.BackchannelMonitor!.AddConnection(connection.Hash, connection.SocketPath, connection); 1147ctx.BackchannelMonitor.RemoveConnection(connection.Hash, connection.SocketPath); 1176ctx.BackchannelMonitor!.AddConnection(connection.Hash, connection.SocketPath, connection); 1226ctx.BackchannelMonitor!.AddConnection(mockBackchannel.SocketPath, mockBackchannel); 1300ctx.BackchannelMonitor!.AddConnection(connection.Hash, connection.SocketPath, connection); 1339ctx.BackchannelMonitor!.AddConnection(connection.Hash, connection.SocketPath, connection); 1429ctx.BackchannelMonitor!.AddConnection(mockBackchannel.SocketPath, mockBackchannel); 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); 1517ctx.BackchannelMonitor.RemoveConnection(connectionA.Hash, connectionA.SocketPath); 1525ctx.BackchannelMonitor.AddConnection(connectionB.Hash, connectionB.SocketPath, connectionB);