Editare

Partajați prin


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

Definition

Initializes a new instance of the PollingCounter class.

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))

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