לקריאה באנגלית ערוך

שתף באמצעות


MeasurementCallback<T> Delegate

Definition

A delegate to represent the Meterlistener callbacks that are used when recording measurements.

public delegate void MeasurementCallback<T>(Instrument instrument, T measurement, ReadOnlySpan<KeyValuePair<string,object?>> tags, object? state);
public delegate void MeasurementCallback<T>(Instrument instrument, T measurement, ReadOnlySpan<KeyValuePair<string,object?>> tags, object? state) where T : struct;

Type Parameters

T

The type that the measurement represents.

Parameters

instrument
Instrument

The instrument that sent the measurement.

measurement
T

The measurement value.

tags
ReadOnlySpan<KeyValuePair<String,Object>>

A span of key-value pair tags associated with the measurement.

state
Object

The state object originally passed to EnableMeasurementEvents(Instrument, Object) method.

Extension Methods

GetMethodInfo(Delegate)

Gets an object that represents the method represented by the specified delegate.

Applies to

מוצר גירסאות
.NET 6, 7, 8 (package-provided), 8, 9 (package-provided), 9
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)