27 references to FailedToStart
Aspire.Hosting (11)
ApplicationModel\CustomResourceSnapshot.cs (2)
366public static readonly string FailedToStart = nameof(FailedToStart); 401public static readonly IReadOnlyList<string> TerminalStates = [Finished, FailedToStart, Exited];
ApplicationModel\ResourceNotificationService.cs (6)
167if (snapshot.State?.Text == KnownResourceStates.FailedToStart) 216snapshot.State?.Text == KnownResourceStates.FailedToStart || 236/// If the resource enters an unavailable state such as <see cref="KnownResourceStates.FailedToStart"/> then 263/// enters an unavailable state such as <see cref="KnownResourceStates.FailedToStart"/>. 298snapshot.State?.Text == KnownResourceStates.FailedToStart || 327if (snapshot.State?.Text == KnownResourceStates.FailedToStart)
Orchestrator\ApplicationOrchestrator.cs (3)
323await _notificationService.PublishUpdateAsync(context.Resource, context.DcpResourceName, s => s with { State = KnownResourceStates.FailedToStart }).ConfigureAwait(false); 327await SetChildResourceAsync(context.Resource, KnownResourceStates.FailedToStart, startTimeStamp: null, stopTimeStamp: null).ConfigureAwait(false); 332await _notificationService.PublishUpdateAsync(context.Resource, s => s with { State = KnownResourceStates.FailedToStart }).ConfigureAwait(false);
Aspire.Hosting.Azure.AIFoundry (3)
AzureAIFoundryExtensions.cs (3)
173State = KnownResourceStates.FailedToStart, 249State = KnownResourceStates.FailedToStart 258State = KnownResourceStates.FailedToStart
Aspire.Hosting.Azure.Tests (1)
AzureAIFoundryExtensionsTests.cs (1)
91await rns.WaitForResourceAsync(resource.Name, [KnownResourceStates.FailedToStart, KnownResourceStates.Running], cts.Token);
Aspire.Hosting.Tests (12)
WaitForTests.cs (12)
32await app.ResourceNotifications.WaitForResourceAsync(throwingResource.Resource.Name, KnownResourceStates.FailedToStart, abortCts.Token); 33await app.ResourceNotifications.WaitForResourceAsync(dependingContainerResource.Resource.Name, KnownResourceStates.FailedToStart, abortCts.Token); 34await app.ResourceNotifications.WaitForResourceAsync(dependingExecutableResource.Resource.Name, KnownResourceStates.FailedToStart, abortCts.Token); 196[InlineData(nameof(KnownResourceStates.FailedToStart))] 223await app.ResourceNotifications.WaitForResourceAsync(nginx.Resource.Name, KnownResourceStates.FailedToStart, waitingStateCts.Token); 307[InlineData(nameof(KnownResourceStates.FailedToStart))] 334await app.ResourceNotifications.WaitForResourceAsync(nginx.Resource.Name, KnownResourceStates.FailedToStart, waitingStateCts.Token); 341[InlineData(nameof(KnownResourceStates.FailedToStart))] 383[InlineData(nameof(KnownResourceStates.FailedToStart))] 515await app.ResourceNotifications.WaitForResourceAsync(nginx.Resource.Name, KnownResourceStates.FailedToStart, runningStateCts.Token); 571await app.ResourceNotifications.WaitForResourceAsync(nginx.Resource.Name, KnownResourceStates.FailedToStart, runningStateCts.Token); 623await app.ResourceNotifications.WaitForResourceAsync(nginx.Resource.Name, KnownResourceStates.FailedToStart, runningStateCts.Token);