MetricCollector<T>.WaitForMeasurementsAsync 方法

定义

重载

WaitForMeasurementsAsync(Int32, CancellationToken)

返回收集器收集最小度量值数时完成的任务。

WaitForMeasurementsAsync(Int32, TimeSpan)

返回收集器收集最小度量值数时完成的任务。

WaitForMeasurementsAsync(Int32, CancellationToken)

Source:
MetricCollector.cs
Source:
MetricCollector.cs
Source:
MetricCollector.cs

返回收集器收集最小度量值数时完成的任务。

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

参数

minCount
Int32

要等待的最小度量数。

cancellationToken
CancellationToken

取消标记。

返回

收集器收集到所需度量数时完成的任务。

适用于

WaitForMeasurementsAsync(Int32, TimeSpan)

Source:
MetricCollector.cs
Source:
MetricCollector.cs
Source:
MetricCollector.cs

返回收集器收集最小度量值数时完成的任务。

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

参数

minCount
Int32

要等待的最小度量数。

timeout
TimeSpan

等待多长时间。

返回

收集器收集到所需度量数时完成的任务。

适用于