1 write to Value
Aspire.Dashboard (1)
Otlp\Model\MetricValues\MetricValue.cs (1)
15
Value
= value;
17 references to Value
Aspire.Dashboard (11)
Components\Controls\Chart\ChartBase.cs (2)
450
MetricValue<long> longMetric => longMetric.
Value
,
451
MetricValue<double> doubleMetric => doubleMetric.
Value
,
Otlp\Model\MetricValues\DimensionScope.cs (2)
41
if (lastLongValue is not null && lastLongValue.
Value
== value)
61
if (lastDoubleValue is not null && lastDoubleValue.
Value
== d.AsDouble)
Otlp\Model\MetricValues\MetricValue.cs (7)
18
public override string? ToString() =>
Value
.ToString();
22
var value = new MetricValue<T>(
Value
, Start, End);
32
if (
Value
is IComparable a && obj is MetricValue<T> other)
34
comparisonResult = a.CompareTo(other.
Value
);
47
&& Equals(
Value
, other.
Value
);
52
return HashCode.Combine(Start, End, Count,
Value
);
Aspire.Dashboard.Tests (6)
TelemetryRepositoryTests\MetricsTests.cs (6)
485
Assert.Equal(3, ((MetricValue<long>)m).
Value
);
491
Assert.Equal(4, ((MetricValue<long>)m).
Value
);
497
Assert.Equal(5, ((MetricValue<long>)m).
Value
);
598
Assert.Equal(1, ((MetricValue<long>)d.Values.Single()).
Value
);
603
Assert.Equal(2, ((MetricValue<long>)d.Values.Single()).
Value
);
608
Assert.Equal(3, ((MetricValue<long>)d.Values.Single()).
Value
);