Condividi tramite


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

Definizione

Inizializza una nuova istanza della classe 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))

Parametri

name
String

Nome dell'istanza di PollingCounter.

eventSource
EventSource

Origine evento.

metricProvider
Func<Double>

Metodo che verrà usato per eseguire il polling del valore.

Si applica a