17 references to Id
aspire-tray (17)
NativeSmokeHarness.cs (9)
170_application.ClickPanelForSmoke(PanelTargetKind.Dashboard, _hosts[0].Id); 175_application.VerifyActionListForSmoke(_hosts[1].Id); 176_application.PickRowActionForSmoke(_hosts[0].Id, PanelTargetKind.TogglePin); 177Require(_controller.State.AppHosts.Single(host => host.Id == _hosts[0].Id).IsPinned, "Pin from the action list did not persist."); 178_staleHost = _controller.State.AppHosts.Single(host => host.Id == _hosts[0].Id); 179_application.ClickPanelForSmoke(PanelTargetKind.Stop, _hosts[0].Id); 183if (_client.Stops.Count != 1 || !state.AppHosts.Single(host => host.Id == _hosts[0].Id).IsStopping) 192if (!state.AppHosts.Any(host => host.Id == Replacement(_hosts[0]).Id)) 201_application.PressPanelForSmoke(PanelTargetKind.Stop, _hosts[2].Id);
src\Aspire.Tray\Common\TrayController.cs (7)
273return _snapshot.AppHosts.SingleOrDefault(host => host.Id == id) 323var arrivingPaths = snapshot.AppHosts.Where(host => !_lastLiveIds.Contains(host.Id)) 326_lastLiveIds = snapshot.AppHosts.Select(host => host.Id).ToHashSet(); 354var liveIds = _snapshot.AppHosts.Select(host => host.Id).ToHashSet(); 574_stops.TryGetValue(host.Id, out var stop); 581return new AppHostMenuItem(host.Id, AppHostPresentation.GetTitle(host), subtitle, 643return new(host.Id, AppHostPresentation.GetTitle(host), subtitle, AppHostPresentation.GetDisplayName(host),
TrayApplication.Actions.cs (1)
31controller.RequestStop(controller.RequireLiveInstance(target.Id).Id);