117 references to KnownResourceStates
Aspire.Hosting (26)
Aspire.Hosting.Azure.Tests (9)
Aspire.Hosting.Dapr (2)
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.Qdrant.Tests (3)
Aspire.Hosting.RabbitMQ.Tests (3)
Aspire.Hosting.Redis.Tests (3)
Aspire.Hosting.SqlServer.Tests (3)
Aspire.Hosting.Tests (36)
Health\ResourceHealthCheckServiceTests.cs (16)
31State = new ResourceStateSnapshot(KnownResourceStates.Starting, null)
34var startingEvent = await rns.WaitForResourceAsync("resource", e => e.Snapshot.State?.Text == KnownResourceStates.Starting).DefaultTimeout();
39State = new ResourceStateSnapshot(KnownResourceStates.Running, null)
65State = new ResourceStateSnapshot(KnownResourceStates.Starting, null)
68var startingEvent = await rns.WaitForResourceAsync("resource", e => e.Snapshot.State?.Text == KnownResourceStates.Starting).DefaultTimeout();
73State = new ResourceStateSnapshot(KnownResourceStates.Running, null)
76var runningEvent = await rns.WaitForResourceAsync("resource", e => e.Snapshot.State?.Text == KnownResourceStates.Running).DefaultTimeout();
110State = KnownResourceStates.Running
157State = KnownResourceStates.Running
159await rns.WaitForResourceAsync(resource.Resource.Name, KnownResourceStates.Running, abortTokenSource.Token).DefaultTimeout();
194State = new ResourceStateSnapshot(KnownResourceStates.Running, null)
226State = new ResourceStateSnapshot(KnownResourceStates.Running, null)
290State = new ResourceStateSnapshot(KnownResourceStates.Running, null)
335State = new ResourceStateSnapshot(KnownResourceStates.Running, null)
388State = new ResourceStateSnapshot(KnownResourceStates.Running, null)
396State = new ResourceStateSnapshot(KnownResourceStates.Running, null)
WaitForTests.cs (15)
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);
115State = KnownResourceStates.Running
149await rns.WaitForResourceAsync(nginx.Resource.Name, KnownResourceStates.Waiting, waitingStateCts.Token);
156State = KnownResourceStates.Finished,
164await rns.WaitForResourceAsync(nginx.Resource.Name, KnownResourceStates.Running, runningStateCts.Token);
204State = KnownResourceStates.Finished,
212await rns.WaitForResourceAsync(nginx.Resource.Name, KnownResourceStates.FailedToStart, runningStateCts.Token);
245await rns.WaitForResourceAsync(nginx.Resource.Name, KnownResourceStates.Waiting, waitingStateCts.Token);
252State = KnownResourceStates.Finished,
259await rns.WaitForResourceAsync(nginx.Resource.Name, KnownResourceStates.FailedToStart, runningStateCts.Token);
328await rns.WaitForResourceAsync(nginx.Resource.Name, KnownResourceStates.Waiting, waitingStateCts.Token);
333State = KnownResourceStates.Finished
336await rns.WaitForResourceAsync(nginx.Resource.Name, KnownResourceStates.Running, waitingStateCts.Token);
Aspire.Hosting.Valkey.Tests (3)
Aspire.Playground.Tests (5)