MeasurementExtensions.EvaluateAsCounter<T> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Process the series of measurements adding all values together to produce a final count, identical to what a Counter<T> instrument would produce.
public:
generic <typename T>
where T : value class[System::Runtime::CompilerServices::Extension]
static T EvaluateAsCounter(System::Collections::Generic::IEnumerable<Microsoft::Extensions::Diagnostics::Metrics::Testing::CollectedMeasurement<T> ^> ^ measurements);
public static T EvaluateAsCounter<T> (this System.Collections.Generic.IEnumerable<Microsoft.Extensions.Diagnostics.Metrics.Testing.CollectedMeasurement<T>> measurements) where T : struct;
static member EvaluateAsCounter : seq<Microsoft.Extensions.Diagnostics.Metrics.Testing.CollectedMeasurement<'T>> -> 'T (requires 'T : struct)
<Extension()>
Public Function EvaluateAsCounter(Of T As Structure) (measurements As IEnumerable(Of CollectedMeasurement(Of T))) As T
Type Parameters
- T
The type of measurement value.
Parameters
- measurements
- IEnumerable<CollectedMeasurement<T>>
The list of measurements to process.
Returns
T
The resulting count.
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈