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)
43
if (lastLongValue is not null && lastLongValue.
Value
== value)
63
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)
484
Assert.Equal(3, ((MetricValue<long>)m).
Value
);
490
Assert.Equal(4, ((MetricValue<long>)m).
Value
);
496
Assert.Equal(5, ((MetricValue<long>)m).
Value
);
597
Assert.Equal(1, ((MetricValue<long>)d.Values.Single()).
Value
);
602
Assert.Equal(2, ((MetricValue<long>)d.Values.Single()).
Value
);
607
Assert.Equal(3, ((MetricValue<long>)d.Values.Single()).
Value
);