10 references to TimeoutAfter
Aspire.Hosting.Tests (10)
Health\ResourceHealthCheckServiceTests.cs (6)
48await app.StopAsync().TimeoutAfter(TestConstants.LongTimeoutTimeSpan); 241await app.StopAsync(abortTokenSource.Token).TimeoutAfter(TestConstants.LongTimeoutTimeSpan); 357await app.StopAsync().TimeoutAfter(TestConstants.LongTimeoutTimeSpan); 557await app.StopAsync().TimeoutAfter(TestConstants.LongTimeoutTimeSpan); 605await app.StopAsync().TimeoutAfter(TestConstants.LongTimeoutTimeSpan); 651await app.StopAsync().TimeoutAfter(TestConstants.LongTimeoutTimeSpan);
tests\Shared\AsyncTestHelpers.cs (4)
73return task.TimeoutAfter(TimeSpan.FromMilliseconds(milliseconds), filePath, lineNumber); 78return task.TimeoutAfter(timeout, filePath, lineNumber); 88return task.AsTask().TimeoutAfter(TimeSpan.FromMilliseconds(milliseconds), filePath, lineNumber); 93return task.AsTask().TimeoutAfter(timeout, filePath, lineNumber);