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.