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.
16
public
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.
21
public
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.
26
public
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.
31
public
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.
36
public
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.
41
public
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.
46
public
MeasurementCallback
<decimal>? DecimalHandler { get; set; }
System.Diagnostics.DiagnosticSource (15)
System\Diagnostics\Metrics\MeterListener.cs (15)
28
private
MeasurementCallback
<byte> _byteMeasurementCallback = (instrument, measurement, tags, state) => { /* no-op */ };
29
private
MeasurementCallback
<short> _shortMeasurementCallback = (instrument, measurement, tags, state) => { /* no-op */ };
30
private
MeasurementCallback
<int> _intMeasurementCallback = (instrument, measurement, tags, state) => { /* no-op */ };
31
private
MeasurementCallback
<long> _longMeasurementCallback = (instrument, measurement, tags, state) => { /* no-op */ };
32
private
MeasurementCallback
<float> _floatMeasurementCallback = (instrument, measurement, tags, state) => { /* no-op */ };
33
private
MeasurementCallback
<double> _doubleMeasurementCallback = (instrument, measurement, tags, state) => { /* no-op */ };
34
private
MeasurementCallback
<decimal> _decimalMeasurementCallback = (instrument, measurement, tags, state) => { /* no-op */ };
131
public 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;