Share via


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

대기 시간.

반환

수집기가 필요한 측정 횟수를 수집했을 때 완료되는 작업입니다.

적용 대상