public ref class PollingCounter : System::Diagnostics::Tracing::DiagnosticCounter
public class PollingCounter : System.Diagnostics.Tracing.DiagnosticCounter
type PollingCounter = class inherit DiagnosticCounter
Public Class PollingCounter Inherits DiagnosticCounter
PollingCounter is a variant of EventCounter that uses a callback method to poll for values rather than requiring the writer to explicitly call EventCounter.WriteMetric each time a value is tracked,
metricProvider is a callback method that polls for values. The PollingCounter instance polls and reports a value retrieved by calling
metricProvider exactly once per the interval requested by the listener.
|PollingCounter(String, EventSource, Func<Double>)||
Initializes a new instance of the PollingCounter class.
Gets or sets the display name of the counter.(Inherited from DiagnosticCounter)
Gets or sets the display units of the counter.(Inherited from DiagnosticCounter)
Gets the EventSource that this counter is attached to.(Inherited from DiagnosticCounter)
Gets the name of this counter.(Inherited from DiagnosticCounter)
Adds key-value metadata to the counter that will be included as a part of the payload.(Inherited from DiagnosticCounter)
Removes the counter from the set that the EventSource will report on.(Inherited from DiagnosticCounter)
Determines whether the specified object is equal to the current object.(Inherited from Object)
Serves as the default hash function.(Inherited from Object)
Gets the Type of the current instance.(Inherited from Object)
Creates a shallow copy of the current Object.(Inherited from Object)
Returns a string representation of the current polling counter instance.