35 references to WaitForMeasurementsAsync
Aspire.Confluent.Kafka.Tests (16)
MetricsTests.cs (16)
65collectorNetworkTx.WaitForMeasurementsAsync(statistics.Count), 66collectorNetworkTransmitted.WaitForMeasurementsAsync(statistics.Count), 67collectorNetworkRx.WaitForMeasurementsAsync(statistics.Count), 68collectorNetworkReceived.WaitForMeasurementsAsync(statistics.Count), 69collectorMessageTx.WaitForMeasurementsAsync(statistics.Count), 70collectorMessageTransmitted.WaitForMeasurementsAsync(statistics.Count), 71collectorMessageRx.WaitForMeasurementsAsync(statistics.Count), 72collectorMessageReceived.WaitForMeasurementsAsync(statistics.Count) 182collectorNetworkTx.WaitForMeasurementsAsync(statistics.Count), 183collectorNetworkTransmitted.WaitForMeasurementsAsync(statistics.Count), 184collectorNetworkRx.WaitForMeasurementsAsync(statistics.Count), 185collectorNetworkReceived.WaitForMeasurementsAsync(statistics.Count), 186collectorMessageTx.WaitForMeasurementsAsync(statistics.Count), 187collectorMessageTransmitted.WaitForMeasurementsAsync(statistics.Count), 188collectorMessageRx.WaitForMeasurementsAsync(statistics.Count), 189collectorMessageReceived.WaitForMeasurementsAsync(statistics.Count)
InMemory.FunctionalTests (1)
KestrelMetricsTests.cs (1)
829await connectionDuration.WaitForMeasurementsAsync(minCount: 1).DefaultTimeout();
Interop.FunctionalTests (2)
Http2\Http2RequestTests.cs (1)
138await connectionDuration.WaitForMeasurementsAsync(minCount: 1).DefaultTimeout();
Http3\Http3RequestTests.cs (1)
99await connectionDuration.WaitForMeasurementsAsync(minCount: 1).DefaultTimeout();
Microsoft.AspNetCore.Diagnostics.Tests (6)
DeveloperExceptionPageMiddlewareTest.cs (1)
609await requestDurationCollector.WaitForMeasurementsAsync(minCount: 1).DefaultTimeout();
ExceptionHandlerMiddlewareTest.cs (2)
341await requestDurationCollector.WaitForMeasurementsAsync(minCount: 1).DefaultTimeout(); 408await requestDurationCollector.WaitForMeasurementsAsync(minCount: 1).DefaultTimeout();
ExceptionHandlerTest.cs (3)
1031await instrumentCollector.WaitForMeasurementsAsync(minCount: 1).DefaultTimeout(); 1101await instrumentCollector.WaitForMeasurementsAsync(minCount: 1).DefaultTimeout(); 1163await instrumentCollector.WaitForMeasurementsAsync(minCount: 1).DefaultTimeout();
Microsoft.Extensions.Diagnostics.Testing (1)
Metrics\MetricCollector.cs (1)
260await WaitForMeasurementsAsync(minCount, cancellationTokenSource.Token).ConfigureAwait(false);
Microsoft.Extensions.Diagnostics.Testing.Tests (8)
Metrics\MetricCollectorTests.cs (8)
245await Assert.ThrowsAsync<ArgumentOutOfRangeException>(async () => await collector.WaitForMeasurementsAsync(-1)); 246await Assert.ThrowsAsync<ArgumentOutOfRangeException>(async () => await collector.WaitForMeasurementsAsync(0)); 250var wait = collector.WaitForMeasurementsAsync(2); 265wait = collector.WaitForMeasurementsAsync(1); 284var wait = collector.WaitForMeasurementsAsync(1, cts.Token); 309await Assert.ThrowsAsync<ArgumentOutOfRangeException>(async () => await collector.WaitForMeasurementsAsync(-1)); 310await Assert.ThrowsAsync<ArgumentOutOfRangeException>(async () => await collector.WaitForMeasurementsAsync(0)); 366await Assert.ThrowsAsync<ObjectDisposedException>(async () => await collector.WaitForMeasurementsAsync(1));
Sockets.FunctionalTests (1)
src\Servers\Kestrel\test\FunctionalTests\ResponseTests.cs (1)
460await connectionDuration.WaitForMeasurementsAsync(minCount: 1).DefaultTimeout();