76 references to WaitForResourceAsync
Aspire.Hosting.Azure.Tests (9)
Aspire.Hosting.Containers.Tests (1)
Aspire.Hosting.Elasticsearch.Tests (3)
Aspire.Hosting.Garnet.Tests (3)
Aspire.Hosting.Kafka.Tests (3)
Aspire.Hosting.MongoDB.Tests (3)
Aspire.Hosting.MySql.Tests (3)
Aspire.Hosting.Nats.Tests (3)
Aspire.Hosting.Oracle.Tests (3)
Aspire.Hosting.PostgreSQL.Tests (3)
Aspire.Hosting.Python.Tests (1)
Aspire.Hosting.Qdrant.Tests (3)
Aspire.Hosting.RabbitMQ.Tests (3)
Aspire.Hosting.Redis.Tests (3)
Aspire.Hosting.SqlServer.Tests (3)
Aspire.Hosting.Testing.Tests (1)
Aspire.Hosting.Tests (24)
ResourceNotificationTests.cs (7)
163var waitTask = notificationService.WaitForResourceAsync("myResource1", "SomeState");
179var waitTask = notificationService.WaitForResourceAsync("MYreSouRCe1", "sOmeSTAtE", cts.Token);
197var waitTask = notificationService.WaitForResourceAsync("myResource1", "SomeState");
209var waitTask = notificationService.WaitForResourceAsync("myResource1", targetState: null);
253var waitTask = notificationService.WaitForResourceAsync("myResource1", "SomeState", cts.Token);
269var waitTask = notificationService.WaitForResourceAsync("myResource1", "SomeState");
285var waitTask = notificationService.WaitForResourceAsync("myResource1", "SomeState", cts.Token);
WaitForTests.cs (13)
32await rns.WaitForResourceAsync(throwingResource.Resource.Name, KnownResourceStates.FailedToStart, abortCts.Token);
33await rns.WaitForResourceAsync(dependingContainerResource.Resource.Name, KnownResourceStates.FailedToStart, abortCts.Token);
34await rns.WaitForResourceAsync(dependingExecutableResource.Resource.Name, KnownResourceStates.FailedToStart, abortCts.Token);
108await rns.WaitForResourceAsync(nginx.Resource.Name, "Waiting", waitingStateCts.Token);
149await rns.WaitForResourceAsync(nginx.Resource.Name, KnownResourceStates.Waiting, waitingStateCts.Token);
164await rns.WaitForResourceAsync(nginx.Resource.Name, KnownResourceStates.Running, runningStateCts.Token);
197await rns.WaitForResourceAsync(nginx.Resource.Name, "Waiting", waitingStateCts.Token);
212await rns.WaitForResourceAsync(nginx.Resource.Name, KnownResourceStates.FailedToStart, runningStateCts.Token);
245await rns.WaitForResourceAsync(nginx.Resource.Name, KnownResourceStates.Waiting, waitingStateCts.Token);
259await rns.WaitForResourceAsync(nginx.Resource.Name, KnownResourceStates.FailedToStart, runningStateCts.Token);
294await rns.WaitForResourceAsync(nginx.Resource.Name, "FailedToStart", waitingStateCts.Token);
328await rns.WaitForResourceAsync(nginx.Resource.Name, KnownResourceStates.Waiting, waitingStateCts.Token);
336await rns.WaitForResourceAsync(nginx.Resource.Name, KnownResourceStates.Running, waitingStateCts.Token);
Aspire.Hosting.Valkey.Tests (3)
Aspire.Playground.Tests (1)