1 write to Instrument
Aspire.Dashboard (1)
Model\InstrumentViewModel.cs (1)
36Instrument = instrument;
16 references to Instrument
Aspire.Dashboard (11)
Components\Controls\Chart\ChartBase.cs (7)
89InstrumentViewModel.Instrument is null || 108if (_renderedInstrument is null || _renderedInstrument != InstrumentViewModel.Instrument.GetKey() || 114_renderedInstrument = InstrumentViewModel.Instrument.GetKey(); 148return $"<b>{HttpUtility.HtmlEncode(InstrumentViewModel.Instrument?.Name)}</b><br />{HttpUtility.HtmlEncode(name)}: {FormatHelpers.FormatNumberWithOptionalDecimalPlaces(yValue, maxDecimalPlaces: 6, CultureInfo.CurrentCulture)}<br />Time: {FormatHelpers.FormatTime(TimeProvider, TimeProvider.ToLocal(xValue))}"; 158Debug.Assert(InstrumentViewModel.Instrument != null); 161? GetDisplayedUnit(InstrumentViewModel.Instrument) 167if (InstrumentViewModel.Instrument?.Type != OtlpInstrumentType.Histogram || InstrumentViewModel.ShowCount)
Components\Controls\Chart\MetricTable.razor.cs (3)
50if (!Equals(_instrument?.Name, InstrumentViewModel.Instrument?.Name) || _showCount != InstrumentViewModel.ShowCount) 57_instrument = InstrumentViewModel.Instrument; 105Instrument = InstrumentViewModel.Instrument!
Components\Controls\Chart\PlotlyChart.razor.cs (1)
47if (InstrumentViewModel?.Instrument is { } instrument)
Aspire.Dashboard.Components.Tests (5)
Pages\MetricsTests.cs (5)
171var instrument = instrumentViewModel.Instrument; 258Assert.NotNull(instrumentViewModel.Instrument); 265await instrumentViewModel.UpdateDataAsync(instrumentViewModel.Instrument!, instrumentViewModel.MatchedDimensions!, hasOverflow: false); 286Assert.Same(instrumentViewModel.Instrument, dialog.Instrument); 522Assert.Equal("instrument-2", updatedTable.Instance.InstrumentViewModel.Instrument?.Name);