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

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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