1 write to Value
Aspire.Dashboard (1)
Otlp\Model\MetricValues\MetricValue.cs (1)
15Value = value;
17 references to Value
Aspire.Dashboard (11)
Components\Controls\Chart\ChartBase.cs (2)
450MetricValue<long> longMetric => longMetric.Value, 451MetricValue<double> doubleMetric => doubleMetric.Value,
Otlp\Model\MetricValues\DimensionScope.cs (2)
41if (lastLongValue is not null && lastLongValue.Value == value) 61if (lastDoubleValue is not null && lastDoubleValue.Value == d.AsDouble)
Otlp\Model\MetricValues\MetricValue.cs (7)
18public override string? ToString() => Value.ToString(); 22var value = new MetricValue<T>(Value, Start, End); 32if (Value is IComparable a && obj is MetricValue<T> other) 34comparisonResult = a.CompareTo(other.Value); 47&& Equals(Value, other.Value); 52return HashCode.Combine(Start, End, Count, Value);
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);