AppInsightsMetricListener Class
Definition
A listener for metrics which forwards data to AppInsights.
public class AppInsightsMetricListener : IDisposableInheritance object
Implements IDisposable
Constructors
AppInsightsMetricListener(TelemetryClient, IOptions)
Initializes a new instance of the AppInsightsMetricListener class.
public AppInsightsMetricListener(TelemetryClient client, IOptions<AppInsightsMetricListenerOptions> options)Parameters
client TelemetryClient
The telemetry client.
options IOptions<AppInsightsMetricListenerOptions>
The listener options.
Properties
MeterListener
Gets the underlying listener.
public MeterListener MeterListener { get; }Methods
Start()
Starts the listener.
public void Start()Dispose()
Stops the listener.
public void Dispose()