Compartir a través de


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

Definición

Inicializa una nueva instancia de la clase PollingCounter.

public:
 PollingCounter(System::String ^ name, System::Diagnostics::Tracing::EventSource ^ eventSource, Func<double> ^ metricProvider);
public PollingCounter (string name, System.Diagnostics.Tracing.EventSource eventSource, Func<double> metricProvider);
new System.Diagnostics.Tracing.PollingCounter : string * System.Diagnostics.Tracing.EventSource * Func<double> -> System.Diagnostics.Tracing.PollingCounter
Public Sub New (name As String, eventSource As EventSource, metricProvider As Func(Of Double))

Parámetros

name
String

Nombre para esta instancia PollingCounter.

eventSource
EventSource

Origen del evento.

metricProvider
Func<Double>

Método que se usará para sondear el valor.

Se aplica a