14 references to FailedToStart
Aspire.Hosting (8)
ApplicationModel\CustomResourceSnapshot.cs (2)
326public static readonly string FailedToStart = nameof(FailedToStart); 356public static readonly IReadOnlyList<string> TerminalStates = [Finished, FailedToStart, Exited];
ApplicationModel\ResourceNotificationService.cs (3)
140if (snapshot.State?.Text == KnownResourceStates.FailedToStart) 183snapshot.State?.Text == KnownResourceStates.FailedToStart; 219if (snapshot.State?.Text == KnownResourceStates.FailedToStart)
Orchestrator\ApplicationOrchestrator.cs (3)
116await _notificationService.PublishUpdateAsync(context.Resource, context.DcpResourceName, s => s with { State = KnownResourceStates.FailedToStart }).ConfigureAwait(false); 120await SetChildResourceAsync(context.Resource, context.DcpResourceName, KnownResourceStates.FailedToStart, startTimeStamp: null, stopTimeStamp: null).ConfigureAwait(false); 125await _notificationService.PublishUpdateAsync(context.Resource, s => s with { State = KnownResourceStates.FailedToStart }).ConfigureAwait(false);
Aspire.Hosting.Tests (6)
WaitForTests.cs (6)
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); 213await rns.WaitForResourceAsync(nginx.Resource.Name, KnownResourceStates.FailedToStart, runningStateCts.Token); 270await rns.WaitForResourceAsync(nginx.Resource.Name, KnownResourceStates.FailedToStart, runningStateCts.Token); 323await rns.WaitForResourceAsync(nginx.Resource.Name, KnownResourceStates.FailedToStart, runningStateCts.Token);