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

Definition

Initializes a new instance of the IncrementingPollingCounter class.

C#
public IncrementingPollingCounter(string name, System.Diagnostics.Tracing.EventSource eventSource, Func<double> totalValueProvider);

Parameters

name
String

The name for this IncrementingPollingCounter instance.

eventSource
EventSource

The event source this instance is a part of.

totalValueProvider
Func<Double>

A method that will be used to poll the value.

Applies to

Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.1