Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
LastValue.cs
Go to the documentation of this file.
1
namespace
System.Diagnostics.Metrics
;
2
3
internal
sealed
class
LastValue
:
Aggregator
4
{
5
private
double
?
_lastValue
;
6
7
public
override
void
Update
(
double
value
)
8
{
9
_lastValue
=
value
;
10
}
11
12
public
override
IAggregationStatistics
Collect
()
13
{
14
lock (
this
)
15
{
16
LastValueStatistics
result =
new
LastValueStatistics
(
_lastValue
);
17
_lastValue
=
null
;
18
return
result;
19
}
20
}
21
}
System.Diagnostics.Metrics.Aggregator
Definition
Aggregator.cs:4
System.Diagnostics.Metrics.LastValueStatistics
Definition
LastValueStatistics.cs:4
System.Diagnostics.Metrics.LastValue.Collect
override IAggregationStatistics Collect()
Definition
LastValue.cs:12
System.Diagnostics.Metrics.LastValue._lastValue
double? _lastValue
Definition
LastValue.cs:5
System.Diagnostics.Metrics.LastValue.Update
override void Update(double value)
Definition
LastValue.cs:7
System.Diagnostics.Metrics.LastValue
Definition
LastValue.cs:4
System.Diagnostics.Metrics.IAggregationStatistics
Definition
IAggregationStatistics.cs:4
System.Diagnostics.Metrics
Definition
AggregationManager.cs:6
System.ExceptionArgument.value
@ value
source
System.Diagnostics.DiagnosticSource
System.Diagnostics.Metrics
LastValue.cs
Generated by
1.10.0