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
Співпраця з нами на GitHub
Джерело цього вмісту можна знайти на GitHub, де також можна створювати й переглядати запитання та запити на внесення змін. Докладні відомості наведено в нашому посібнику для співавторів.