26 references to CompletedWithError
Aspire.Hosting (10)
DistributedApplicationRunner.cs (1)
65await activityReporter.CompletePublishAsync(completionMessage: ex.Message, completionState: CompletionState.CompletedWithError, isDeploy: publishingOptions.Value.Deploy, cancellationToken: stoppingToken).ConfigureAwait(false);
Pipelines\PipelineActivityReporter.cs (2)
37CompletionState.CompletedWithError => CompletionStates.CompletedWithError, 214CompletionState.CompletedWithError => $"{operationName} completed with errors",
Pipelines\ReportingStep.cs (1)
149CompletionState.CompletedWithError => $"{Title} completed with errors",
Publishing\Publisher.cs (3)
95state = CompletionState.CompletedWithError; 110state = CompletionState.CompletedWithError; 144if (state == CompletionState.CompletedWithError)
Publishing\PublishingExtensions.cs (2)
63await step.CompleteAsync(completionText, CompletionState.CompletedWithError, cancellationToken).ConfigureAwait(false); 127await task.CompleteAsync(errorMessage, CompletionState.CompletedWithError, cancellationToken).ConfigureAwait(false);
Publishing\ResourceContainerImageBuilder.cs (1)
173await step.CompleteAsync("Building container images failed", CompletionState.CompletedWithError, cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Azure (4)
AzureEnvironmentResource.cs (4)
162CompletionState.CompletedWithError, 252CompletionState.CompletedWithError, 407CompletionState.CompletedWithError, 540await pushTask.CompleteAsync($"Failed to push {resource.Name}: {ex.Message}", CompletionState.CompletedWithError, context.CancellationToken).ConfigureAwait(false);
Aspire.Hosting.Tests (8)
Publishing\PipelineActivityReporterTests.cs (7)
136await step.CompleteAsync(completionText, isError ? CompletionState.CompletedWithError : CompletionState.Completed, CancellationToken.None); 282[InlineData(CompletionState.CompletedWithError, "Publishing completed with errors", true)] 311await reporter.CompletePublishAsync(expectedStatusText, CompletionState.CompletedWithError, isDeploy: false, CancellationToken.None); 344await step3.CompleteAsync("Step 3 failed", CompletionState.CompletedWithError, CancellationToken.None); 731Assert.Equal(CompletionState.CompletedWithError, taskInternal.CompletionState); 748[InlineData(CompletionState.CompletedWithError, "Deployment completed with errors", true)] 777await reporter.CompletePublishAsync(expectedStatusText, CompletionState.CompletedWithError, isDeploy: true, CancellationToken.None);
Publishing\PublishingExtensionsTests.cs (1)
120Assert.Equal(CompletionState.CompletedWithError, taskInternal.CompletionState);
Pipelines.Library (4)
DistributedApplicationPipelineExtensions.cs (4)
90CompletionState.CompletedWithError, 102CompletionState.CompletedWithError, 139CompletionState.CompletedWithError, 165CompletionState.CompletedWithError,