6 writes to SelectedInstrument
Aspire.Dashboard (6)
Components\Pages\Metrics.razor.cs (6)
163viewModel.SelectedInstrument = null; 171viewModel.SelectedInstrument = viewModel.Instruments.FirstOrDefault(i => i.Parent.Name == MeterName && i.Name == InstrumentName); 218PageViewModel.SelectedInstrument = null; 293PageViewModel.SelectedInstrument = null; 298PageViewModel.SelectedInstrument = instrument; 303PageViewModel.SelectedInstrument = null;
8 references to SelectedInstrument
Aspire.Dashboard (5)
Components\Controls\TreeMetricSelector.razor.cs (1)
36if (PageViewModel.SelectedInstrument is { } instrument)
Components\Pages\Metrics.razor.cs (4)
141InstrumentName = PageViewModel.SelectedInstrument?.Name, 213PageViewModel.SelectedInstrument != null) 236if (PageViewModel.SelectedInstrument != null && !instruments.Any(i => i.Name == PageViewModel.SelectedInstrument.Name))
Aspire.Dashboard.Components.Tests (3)
Pages\MetricsTests.cs (3)
588cut.WaitForState(() => cut.Instance.PageViewModel.SelectedInstrument is not null); 824Assert.Equal(app1InstrumentName, viewModel.SelectedInstrument!.Name); 833Assert.Equal(expectedInstrumentNameAfterChange, viewModel.SelectedInstrument?.Name);