13 references to Finished
Aspire.Hosting (5)
ApplicationModel\CustomResourceSnapshot.cs (2)
346public static readonly string Finished = nameof(Finished); 361public static readonly IReadOnlyList<string> TerminalStates = [Finished, FailedToStart, Exited];
ApplicationModel\ResourceNotificationService.cs (3)
162else if (snapshot.State!.Text == KnownResourceStates.Finished || snapshot.State!.Text == KnownResourceStates.Exited) 194snapshot.State?.Text == KnownResourceStates.Finished || 251else if ((snapshot.State!.Text == KnownResourceStates.Finished || snapshot.State!.Text == KnownResourceStates.Exited) && snapshot.ExitCode is not null && snapshot.ExitCode != exitCode)
Aspire.Hosting.Tests (8)
DistributedApplicationTests.cs (2)
139await rns.WaitForResourceAsync(dependentResourceName, e => e.Snapshot.State?.Text == KnownResourceStates.Finished).DefaultTimeout(TestConstants.LongTimeoutTimeSpan); 187await rns.WaitForResourceAsync(notStartedResourceName, e => e.Snapshot.State?.Text == KnownResourceStates.Finished).DefaultTimeout(TestConstants.LongTimeoutTimeSpan);
WaitForTests.cs (6)
197State = KnownResourceStates.Finished, 245State = KnownResourceStates.Finished, 356State = KnownResourceStates.Finished, 460State = KnownResourceStates.Finished, 468State = KnownResourceStates.Finished, 510State = KnownResourceStates.Finished