31 references to MeasurementCallback
Microsoft.Extensions.Diagnostics.Abstractions (16)
Metrics\IMetricsListener.cs (1)
28/// <param name="userState">Listener state associated with this instrument. This will be returned to <see cref="MeasurementCallback{T}"/>
Metrics\IObservableInstrumentsSource.cs (1)
17/// Requests that the current set of metrics for enabled instruments be sent to the listener's <see cref="MeasurementCallback{T}"/> objects.
Metrics\MeasurementHandlers.cs (14)
14/// Gets or sets a <see cref="MeasurementCallback{T}"/> for <see cref="byte"/>. If <see langword="null"/>, byte measurements are skipped. 16public MeasurementCallback<byte>? ByteHandler { get; set; } 19/// Gets or sets a <see cref="MeasurementCallback{T}"/> for <see cref="short"/>. If <see langword="null"/>, short measurements are skipped. 21public MeasurementCallback<short>? ShortHandler { get; set; } 24/// Gets or sets a <see cref="MeasurementCallback{T}"/> for <see cref="int"/>. If <see langword="null"/>, int measurements are skipped. 26public MeasurementCallback<int>? IntHandler { get; set; } 29/// Gets or sets a <see cref="MeasurementCallback{T}"/> for <see cref="long"/>. If <see langword="null"/>, long measurements are skipped. 31public MeasurementCallback<long>? LongHandler { get; set; } 34/// Gets or sets a <see cref="MeasurementCallback{T}"/> for <see cref="float"/>. If <see langword="null"/>, float measurements are skipped. 36public MeasurementCallback<float>? FloatHandler { get; set; } 39/// Gets or sets a <see cref="MeasurementCallback{T}"/> for <see cref="double"/>. If <see langword="null"/>, double measurements are skipped. 41public MeasurementCallback<double>? DoubleHandler { get; set; } 44/// Gets or sets a <see cref="MeasurementCallback{T}"/> for <see cref="decimal"/>. If <see langword="null"/>, decimal measurements are skipped. 46public MeasurementCallback<decimal>? DecimalHandler { get; set; }
System.Diagnostics.DiagnosticSource (15)
System\Diagnostics\Metrics\MeterListener.cs (15)
28private MeasurementCallback<byte> _byteMeasurementCallback = (instrument, measurement, tags, state) => { /* no-op */ }; 29private MeasurementCallback<short> _shortMeasurementCallback = (instrument, measurement, tags, state) => { /* no-op */ }; 30private MeasurementCallback<int> _intMeasurementCallback = (instrument, measurement, tags, state) => { /* no-op */ }; 31private MeasurementCallback<long> _longMeasurementCallback = (instrument, measurement, tags, state) => { /* no-op */ }; 32private MeasurementCallback<float> _floatMeasurementCallback = (instrument, measurement, tags, state) => { /* no-op */ }; 33private MeasurementCallback<double> _doubleMeasurementCallback = (instrument, measurement, tags, state) => { /* no-op */ }; 34private MeasurementCallback<decimal> _decimalMeasurementCallback = (instrument, measurement, tags, state) => { /* no-op */ }; 131public void SetMeasurementEventCallback<T>(MeasurementCallback<T>? measurementCallback) where T : struct 142_byteMeasurementCallback = (MeasurementCallback<byte>)(object)measurementCallback; 146_intMeasurementCallback = (MeasurementCallback<int>)(object)measurementCallback; 150_floatMeasurementCallback = (MeasurementCallback<float>)(object)measurementCallback; 154_doubleMeasurementCallback = (MeasurementCallback<double>)(object)measurementCallback; 158_decimalMeasurementCallback = (MeasurementCallback<decimal>)(object)measurementCallback; 162_shortMeasurementCallback = (MeasurementCallback<short>)(object)measurementCallback; 166_longMeasurementCallback = (MeasurementCallback<long>)(object)measurementCallback;