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

Definição

Inicializa uma nova instância da 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))

Parâmetros

name
String

O nome dessa instância PollingCounter.

eventSource
EventSource

A fonte do evento.

metricProvider
Func<Double>

Um método que será usado para sondar o valor.

Aplica-se a