Deila með


MetricCollector<T>.WaitForMeasurementsAsync Method

Definition

Overloads

WaitForMeasurementsAsync(Int32, CancellationToken)

Returns a task that completes when the collector has collected a minimum number of measurements.

WaitForMeasurementsAsync(Int32, TimeSpan)

Returns a task that completes when the collector has collected a minimum number of measurements.

WaitForMeasurementsAsync(Int32, CancellationToken)

Source:
MetricCollector.cs

Returns a task that completes when the collector has collected a minimum number of measurements.

public System.Threading.Tasks.Task WaitForMeasurementsAsync (int minCount, System.Threading.CancellationToken cancellationToken = default);
member this.WaitForMeasurementsAsync : int * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function WaitForMeasurementsAsync (minCount As Integer, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

minCount
Int32

The minimum number of measurements to wait for.

cancellationToken
CancellationToken

The cancellation token.

Returns

A task that completes when the collector has collected the requisite number of measurements.

Applies to

WaitForMeasurementsAsync(Int32, TimeSpan)

Source:
MetricCollector.cs

Returns a task that completes when the collector has collected a minimum number of measurements.

public:
 System::Threading::Tasks::Task ^ WaitForMeasurementsAsync(int minCount, TimeSpan timeout);
public System.Threading.Tasks.Task WaitForMeasurementsAsync (int minCount, TimeSpan timeout);
member this.WaitForMeasurementsAsync : int * TimeSpan -> System.Threading.Tasks.Task
Public Function WaitForMeasurementsAsync (minCount As Integer, timeout As TimeSpan) As Task

Parameters

minCount
Int32

The minimum number of measurements to wait for.

timeout
TimeSpan

How long to wait.

Returns

A task that completes when the collector has collected the requisite number of measurements.

Applies to