52 references to CompletedWithError
Aspire.Hosting (8)
Pipelines\PipelineActivityReporter.cs (2)
37CompletionState.CompletedWithError => CompletionStates.CompletedWithError, 247CompletionState.CompletedWithError => "Pipeline completed with errors",
Pipelines\PipelineStepHelpers.cs (2)
99CompletionState.CompletedWithError, 139CompletionState.CompletedWithError,
Pipelines\ReportingStep.cs (1)
166CompletionState.CompletedWithError => $"{Title} completed with errors",
Publishing\PipelineExecutor.cs (1)
83await activityReporter.CompletePublishAsync(completionMessage: ex.Message, completionState: CompletionState.CompletedWithError, cancellationToken: stoppingToken).ConfigureAwait(false);
Publishing\PublishingExtensions.cs (2)
63await step.CompleteAsync(completionText, CompletionState.CompletedWithError, cancellationToken).ConfigureAwait(false); 127await task.CompleteAsync(errorMessage, CompletionState.CompletedWithError, cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Azure (2)
AzureBicepResource.cs (1)
359CompletionState.CompletedWithError,
AzureEnvironmentResource.cs (1)
159CompletionState.CompletedWithError,
Aspire.Hosting.Azure.Tests (9)
AzureDeployerTests.cs (9)
174Assert.NotEqual(CompletionState.CompletedWithError, mockActivityReporter.ResultCompletionState); 228Assert.NotEqual(CompletionState.CompletedWithError, mockActivityReporter.ResultCompletionState); 283Assert.NotEqual(CompletionState.CompletedWithError, mockActivityReporter.ResultCompletionState); 343Assert.NotEqual(CompletionState.CompletedWithError, mockActivityReporter.ResultCompletionState); 409Assert.NotEqual(CompletionState.CompletedWithError, mockActivityReporter.ResultCompletionState); 504Assert.NotEqual(CompletionState.CompletedWithError, mockActivityReporter.ResultCompletionState); 712Assert.NotEqual(CompletionState.CompletedWithError, mockActivityReporter.ResultCompletionState); 774Assert.NotEqual(CompletionState.CompletedWithError, mockActivityReporter.ResultCompletionState); 982Assert.NotEqual(CompletionState.CompletedWithError, mockActivityReporter.ResultCompletionState);
Aspire.Hosting.Docker (2)
DockerComposeEnvironmentResource.cs (2)
274await deployTask.CompleteAsync($"Docker Compose deployment failed: {ex.Message}", CompletionState.CompletedWithError, context.CancellationToken).ConfigureAwait(false); 328await deployTask.CompleteAsync($"Docker Compose shutdown failed: {ex.Message}", CompletionState.CompletedWithError, context.CancellationToken).ConfigureAwait(false);
Aspire.Hosting.Tests (27)
Pipelines\DistributedApplicationPipelineTests.cs (2)
874Assert.Contains(reporter.CompletedSteps, step => step.StepTitle == "failing-step" && step.CompletionState == CompletionState.CompletedWithError); 1252Assert.Contains(reporter.CompletedSteps, step => step.StepTitle == "failing-step" && step.CompletionState == CompletionState.CompletedWithError);
Publishing\PipelineActivityReporterTests.cs (24)
136await step.CompleteAsync(completionText, isError ? CompletionState.CompletedWithError : CompletionState.Completed, CancellationToken.None); 282[InlineData(CompletionState.CompletedWithError, "Pipeline completed with errors", true)] 311await reporter.CompletePublishAsync(expectedStatusText, CompletionState.CompletedWithError, CancellationToken.None); 344await step3.CompleteAsync("Step 3 failed", CompletionState.CompletedWithError, CancellationToken.None); 419await task.CompleteAsync("Error", CompletionState.CompletedWithError, cancellationToken: CancellationToken.None); 468await step.CompleteAsync("Error", CompletionState.CompletedWithError, cancellationToken: CancellationToken.None); 502await task.CompleteAsync("Error", CompletionState.CompletedWithError, cancellationToken: CancellationToken.None); // Should also not throw (noop) 791Assert.Equal(CompletionState.CompletedWithError, taskInternal.CompletionState); 808[InlineData(CompletionState.CompletedWithError, "Pipeline completed with errors", true)] 837await reporter.CompletePublishAsync(expectedStatusText, CompletionState.CompletedWithError, CancellationToken.None); 1011await task.CompleteAsync("Error message", CompletionState.CompletedWithError, CancellationToken.None); 1017await task.CompleteAsync("Different error message", CompletionState.CompletedWithError, CancellationToken.None); 1023Assert.Equal(CompletionState.CompletedWithError, taskInternal.CompletionState); 1059await step.CompleteAsync("Error", CompletionState.CompletedWithError, CancellationToken.None); 1065await step.CompleteAsync("Different error", CompletionState.CompletedWithError, CancellationToken.None); 1071Assert.Equal(CompletionState.CompletedWithError, stepInternal.CompletionState); 1076[InlineData(CompletionState.Completed, CompletionState.CompletedWithError)] 1078[InlineData(CompletionState.CompletedWithWarning, CompletionState.CompletedWithError)] 1079[InlineData(CompletionState.CompletedWithError, CompletionState.Completed)] 1080[InlineData(CompletionState.CompletedWithError, CompletionState.CompletedWithWarning)] 1107[InlineData(CompletionState.Completed, CompletionState.CompletedWithError)] 1109[InlineData(CompletionState.CompletedWithWarning, CompletionState.CompletedWithError)] 1110[InlineData(CompletionState.CompletedWithError, CompletionState.Completed)] 1111[InlineData(CompletionState.CompletedWithError, CompletionState.CompletedWithWarning)]
Publishing\PublishingExtensionsTests.cs (1)
120Assert.Equal(CompletionState.CompletedWithError, taskInternal.CompletionState);
Pipelines.Library (4)
DistributedApplicationPipelineExtensions.cs (4)
88CompletionState.CompletedWithError, 100CompletionState.CompletedWithError, 137CompletionState.CompletedWithError, 163CompletionState.CompletedWithError,