10 references to GetKey
Aspire.Dashboard (10)
Components\Controls\Chart\ChartBase.cs (2)
116if (_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())) 139var toRefresh = Instruments.Where(i => _staleInstruments.Contains((GetResourceKey(i), i.GetKey()))).Where(i => visible.Contains((GetResourceKey(i), i.GetKey()))).ToList(); 159return _sparklines.TryGetValue((GetResourceKey(instrument), instrument.GetKey()), out var data) ? data : SparklineData.Empty; 204var key = (GetResourceKey(instrument), instrument.GetKey()); 240return ((key, instrument.GetKey()), await GetSparklineDataAsync(key, duration, instrument, cancellationToken));
Model\MetricPin.cs (1)
31public bool Matches(OtlpInstrumentSummary instrument) => Matches(instrument.ResourceView.Resource.ResourceName, instrument.GetKey());
Otlp\Storage\SqliteTelemetryRepository.Caching.cs (1)
699.DistinctBy(summary => summary.GetKey())