86 references to WaitForResourceAsync
Aspire.Hosting.Azure.Tests (16)
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 (27)
ResourceNotificationTests.cs (8)
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);
255var waitTask = notificationService.WaitForResourceAsync("myResource1", "SomeState");
271var waitTask = notificationService.WaitForResourceAsync("myResource1", "SomeState", cts.Token);
286var waitTask = notificationService.WaitForResourceAsync("myResource1", "SomeState");
303var waitTask = notificationService.WaitForResourceAsync("myResource1", "SomeState", cts.Token);
WaitForTests.cs (15)
33await rns.WaitForResourceAsync(throwingResource.Resource.Name, KnownResourceStates.FailedToStart, abortCts.Token);
34await rns.WaitForResourceAsync(dependingContainerResource.Resource.Name, KnownResourceStates.FailedToStart, abortCts.Token);
35await rns.WaitForResourceAsync(dependingExecutableResource.Resource.Name, KnownResourceStates.FailedToStart, abortCts.Token);
109await rns.WaitForResourceAsync(nginx.Resource.Name, "Waiting", waitingStateCts.Token);
150await rns.WaitForResourceAsync(nginx.Resource.Name, KnownResourceStates.Waiting, waitingStateCts.Token);
165await rns.WaitForResourceAsync(nginx.Resource.Name, KnownResourceStates.Running, runningStateCts.Token);
198await rns.WaitForResourceAsync(nginx.Resource.Name, "Waiting", waitingStateCts.Token);
213await rns.WaitForResourceAsync(nginx.Resource.Name, KnownResourceStates.FailedToStart, runningStateCts.Token);
254await rns.WaitForResourceAsync(nginx.Resource.Name, "Waiting", waitingStateCts.Token);
270await rns.WaitForResourceAsync(nginx.Resource.Name, KnownResourceStates.FailedToStart, runningStateCts.Token);
309await rns.WaitForResourceAsync(nginx.Resource.Name, KnownResourceStates.Waiting, waitingStateCts.Token);
323await rns.WaitForResourceAsync(nginx.Resource.Name, KnownResourceStates.FailedToStart, runningStateCts.Token);
358await rns.WaitForResourceAsync(nginx.Resource.Name, "FailedToStart", waitingStateCts.Token);
392await rns.WaitForResourceAsync(nginx.Resource.Name, KnownResourceStates.Waiting, waitingStateCts.Token);
400await rns.WaitForResourceAsync(nginx.Resource.Name, KnownResourceStates.Running, waitingStateCts.Token);
Aspire.Hosting.Valkey.Tests (3)
Aspire.Playground.Tests (1)