3 instantiations of MetricValue
Aspire.Dashboard (3)
Otlp\Model\MetricValues\DimensionScope.cs (2)
53_lastValue = new MetricValue<long>(d.AsInt, start, end); 73_lastValue = new MetricValue<double>(d.AsDouble, start, end);
Otlp\Model\MetricValues\MetricValue.cs (1)
22var value = new MetricValue<T>(Value, Start, End);
15 references to MetricValue
Aspire.Dashboard (9)
Components\Controls\Chart\ChartBase.cs (2)
450MetricValue<long> longMetric => longMetric.Value, 451MetricValue<double> doubleMetric => doubleMetric.Value,
Otlp\Model\MetricValues\DimensionScope.cs (4)
40var lastLongValue = _lastValue as MetricValue<long>; 60var lastDoubleValue = _lastValue as MetricValue<double>;
Otlp\Model\MetricValues\MetricValue.cs (3)
22var value = new MetricValue<T>(Value, Start, End); 32if (Value is IComparable a && obj is MetricValue<T> other) 44return obj is MetricValue<T> other
Aspire.Dashboard.Tests (6)
TelemetryRepositoryTests\MetricsTests.cs (6)
485Assert.Equal(3, ((MetricValue<long>)m).Value); 491Assert.Equal(4, ((MetricValue<long>)m).Value); 497Assert.Equal(5, ((MetricValue<long>)m).Value); 598Assert.Equal(1, ((MetricValue<long>)d.Values.Single()).Value); 603Assert.Equal(2, ((MetricValue<long>)d.Values.Single()).Value); 608Assert.Equal(3, ((MetricValue<long>)d.Values.Single()).Value);