PollingCounter(String, EventSource, Func<Double>) Constructor

Definition

Initializes a new instance of the PollingCounter class.

public PollingCounter (string name, System.Diagnostics.Tracing.EventSource eventSource, Func<double> metricProvider);

Parameters

name
String

The name for this PollingCounter instance.

eventSource
EventSource

The event source.

metricProvider
Func<Double>

A method that will be used to poll the value.

Applies to

منتج الإصدارات
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Standard 2.1