40 references to CompletedWithError
Aspire.Hosting (6)
Pipelines\PipelineActivityReporter.cs (2)
37
CompletionState.
CompletedWithError
=> CompletionStates.CompletedWithError,
247
CompletionState.
CompletedWithError
=> "Pipeline completed with errors",
Pipelines\ReportingStep.cs (1)
166
CompletionState.
CompletedWithError
=> $"{Title} completed with errors",
Publishing\PipelineExecutor.cs (1)
83
await activityReporter.CompletePublishAsync(completionMessage: ex.Message, completionState: CompletionState.
CompletedWithError
, cancellationToken: stoppingToken).ConfigureAwait(false);
Publishing\PublishingExtensions.cs (2)
63
await step.CompleteAsync(completionText, CompletionState.
CompletedWithError
, cancellationToken).ConfigureAwait(false);
127
await task.CompleteAsync(errorMessage, CompletionState.
CompletedWithError
, cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Azure (3)
AzureBicepResource.cs (1)
358
CompletionState.
CompletedWithError
,
AzureEnvironmentResource.cs (1)
155
CompletionState.
CompletedWithError
,
AzureEnvironmentResourceHelpers.cs (1)
94
await pushTask.CompleteAsync($"Failed to push **{resource.Name}**: {ex.Message}", CompletionState.
CompletedWithError
, context.CancellationToken).ConfigureAwait(false);
Aspire.Hosting.Docker (2)
DockerComposeEnvironmentResource.cs (2)
259
await deployTask.CompleteAsync($"Docker Compose deployment failed: {ex.Message}", CompletionState.
CompletedWithError
, context.CancellationToken).ConfigureAwait(false);
318
await deployTask.CompleteAsync($"Docker Compose shutdown failed: {ex.Message}", CompletionState.
CompletedWithError
, context.CancellationToken).ConfigureAwait(false);
Aspire.Hosting.Tests (25)
Publishing\PipelineActivityReporterTests.cs (24)
136
await step.CompleteAsync(completionText, isError ? CompletionState.
CompletedWithError
: CompletionState.Completed, CancellationToken.None);
282
[InlineData(CompletionState.
CompletedWithError
, "Pipeline completed with errors", true)]
311
await reporter.CompletePublishAsync(expectedStatusText, CompletionState.
CompletedWithError
, CancellationToken.None);
344
await step3.CompleteAsync("Step 3 failed", CompletionState.
CompletedWithError
, CancellationToken.None);
419
await task.CompleteAsync("Error", CompletionState.
CompletedWithError
, cancellationToken: CancellationToken.None);
468
await step.CompleteAsync("Error", CompletionState.
CompletedWithError
, cancellationToken: CancellationToken.None);
502
await task.CompleteAsync("Error", CompletionState.
CompletedWithError
, cancellationToken: CancellationToken.None); // Should also not throw (noop)
791
Assert.Equal(CompletionState.
CompletedWithError
, taskInternal.CompletionState);
808
[InlineData(CompletionState.
CompletedWithError
, "Pipeline completed with errors", true)]
837
await reporter.CompletePublishAsync(expectedStatusText, CompletionState.
CompletedWithError
, CancellationToken.None);
1011
await task.CompleteAsync("Error message", CompletionState.
CompletedWithError
, CancellationToken.None);
1017
await task.CompleteAsync("Different error message", CompletionState.
CompletedWithError
, CancellationToken.None);
1023
Assert.Equal(CompletionState.
CompletedWithError
, taskInternal.CompletionState);
1059
await step.CompleteAsync("Error", CompletionState.
CompletedWithError
, CancellationToken.None);
1065
await step.CompleteAsync("Different error", CompletionState.
CompletedWithError
, CancellationToken.None);
1071
Assert.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)
120
Assert.Equal(CompletionState.
CompletedWithError
, taskInternal.CompletionState);
Pipelines.Library (4)
DistributedApplicationPipelineExtensions.cs (4)
88
CompletionState.
CompletedWithError
,
100
CompletionState.
CompletedWithError
,
137
CompletionState.
CompletedWithError
,
163
CompletionState.
CompletedWithError
,