METHOD

MeterListener.SetMeasurementEventCallback<T>()

Registers a callback for measurements of the selected numeric type.

Formal Syntax & Structure

csharp syntaxcsharp
listener.SetMeasurementEventCallback<int>((i, m, tags, state) => { })

Working Example

Example Snippetcsharp
// Documentary fragment; see mapped lesson for context.listener.SetMeasurementEventCallback<int>((i, m, tags, state) => { })
C# & .NET Reference