28 references to SetMeasurementEventCallback
Interop.FunctionalTests (1)
Http2\Http2RequestTests.cs (1)
53meterListener.SetMeasurementEventCallback<double>((Instrument instrument, double measurement, ReadOnlySpan<KeyValuePair<string, object>> tags, object state) =>
Microsoft.AspNetCore.Hosting.Tests (1)
HostingApplicationDiagnosticsTests.cs (1)
194meterListener.SetMeasurementEventCallback<double>((i, m, t, s) =>
Microsoft.Extensions.Diagnostics (7)
Metrics\ListenerSubscription.cs (7)
33_meterListener.SetMeasurementEventCallback(handlers.ByteHandler); 34_meterListener.SetMeasurementEventCallback(handlers.ShortHandler); 35_meterListener.SetMeasurementEventCallback(handlers.IntHandler); 36_meterListener.SetMeasurementEventCallback(handlers.LongHandler); 37_meterListener.SetMeasurementEventCallback(handlers.FloatHandler); 38_meterListener.SetMeasurementEventCallback(handlers.DoubleHandler); 39_meterListener.SetMeasurementEventCallback(handlers.DecimalHandler);
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (7)
Linux\AcceptanceTest.cs (2)
222listener.SetMeasurementEventCallback<double>((m, f, _, _) 305listener.SetMeasurementEventCallback<double>((m, f, _, _)
Linux\LinuxCountersTests.cs (1)
101listener.SetMeasurementEventCallback<long>((instrument, value, _, _) =>
Linux\LinuxUtilizationProviderTests.cs (2)
66listener.SetMeasurementEventCallback<double>((instrument, value, _, _) => 135listener.SetMeasurementEventCallback<double>((instrument, value, _, _) =>
Windows\WindowsCountersTests.cs (2)
51listener.SetMeasurementEventCallback<long>((instrument, value, _, _) => 93listener.SetMeasurementEventCallback<long>((instrument, value, _, _) =>
Microsoft.Extensions.Diagnostics.Testing (3)
Metrics\MetricCollector.cs (3)
52_meterListener.SetMeasurementEventCallback<T>(OnMeasurementRecorded); 66_meterListener.SetMeasurementEventCallback<T>(OnMeasurementRecorded); 284listener.SetMeasurementEventCallback<T>(OnMeasurementRecorded);
Microsoft.Extensions.Resilience.PerformanceTests (1)
MetricsUtil.cs (1)
25meterListener.SetMeasurementEventCallback<int>(OnMeasurementRecorded);
System.Diagnostics.DiagnosticSource (8)
System\Diagnostics\Metrics\AggregationManager.cs (7)
80_listener.SetMeasurementEventCallback<double>((i, m, l, c) => ((InstrumentState)c!).Update((double)m, l)); 81_listener.SetMeasurementEventCallback<float>((i, m, l, c) => ((InstrumentState)c!).Update((double)m, l)); 82_listener.SetMeasurementEventCallback<long>((i, m, l, c) => ((InstrumentState)c!).Update((double)m, l)); 83_listener.SetMeasurementEventCallback<int>((i, m, l, c) => ((InstrumentState)c!).Update((double)m, l)); 84_listener.SetMeasurementEventCallback<short>((i, m, l, c) => ((InstrumentState)c!).Update((double)m, l)); 85_listener.SetMeasurementEventCallback<byte>((i, m, l, c) => ((InstrumentState)c!).Update((double)m, l)); 86_listener.SetMeasurementEventCallback<decimal>((i, m, l, c) => ((InstrumentState)c!).Update((double)m, l));
System\Diagnostics\Metrics\MeterListener.cs (1)
209/// Calls all Observable instruments which the listener is listening to then calls <see cref="SetMeasurementEventCallback" /> with every collected measurement.