10 references to GetKey
Aspire.Dashboard (10)
Components\Controls\Chart\ChartBase.cs (2)
116
if (_renderedInstrument is null || _renderedInstrument != InstrumentViewModel.Instrument.
GetKey
() ||
126
_renderedInstrument = InstrumentViewModel.Instrument.
GetKey
();
Components\Controls\Chart\LiveSparklinesBase.cs (6)
135
.Select(i => (GetResourceKey(i), i.
GetKey
()))
139
var toRefresh = Instruments.Where(i => _staleInstruments.Contains((GetResourceKey(i), i.
GetKey
()))).Where(i => visible.Contains((GetResourceKey(i), i.
GetKey
()))).ToList();
159
return _sparklines.TryGetValue((GetResourceKey(instrument), instrument.
GetKey
()), out var data) ? data : SparklineData.Empty;
204
var key = (GetResourceKey(instrument), instrument.
GetKey
());
240
return ((key, instrument.
GetKey
()), await GetSparklineDataAsync(key, duration, instrument, cancellationToken));
Model\MetricPin.cs (1)
31
public bool Matches(OtlpInstrumentSummary instrument) => Matches(instrument.ResourceView.Resource.ResourceName, instrument.
GetKey
());
Otlp\Storage\SqliteTelemetryRepository.Caching.cs (1)
699
.DistinctBy(summary => summary.
GetKey
())