54 references to CompletedWithError
Aspire.Hosting (8)
Pipelines\PipelineActivityReporter.cs (2)
37
CompletionState.
CompletedWithError
=> CompletionStates.CompletedWithError,
247
CompletionState.
CompletedWithError
=> "Pipeline completed with errors",
Pipelines\PipelineStepHelpers.cs (2)
99
CompletionState.
CompletedWithError
,
139
CompletionState.
CompletedWithError
,
Pipelines\ReportingStep.cs (1)
166
CompletionState.
CompletedWithError
=> $"{Title} completed with errors",
Publishing\PipelineExecutor.cs (1)
84
await activityReporter.CompletePublishAsync(new PublishCompletionOptions { CompletionMessage = ex.Message, CompletionState = CompletionState.
CompletedWithError
}, 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 (2)
AzureBicepResource.cs (1)
360
CompletionState.
CompletedWithError
,
AzureEnvironmentResource.cs (1)
183
CompletionState.
CompletedWithError
,
Aspire.Hosting.Azure.AppService (1)
AzureAppServiceEnvironmentResource.cs (1)
202
CompletionState.
CompletedWithError
,
Aspire.Hosting.Azure.Tests (10)
AzureAppServiceTests.cs (1)
111
step.CompletionState == CompletionState.
CompletedWithError
);
AzureDeployerTests.cs (9)
176
Assert.NotEqual(CompletionState.
CompletedWithError
, mockActivityReporter.ResultCompletionState);
231
Assert.NotEqual(CompletionState.
CompletedWithError
, mockActivityReporter.ResultCompletionState);
287
Assert.NotEqual(CompletionState.
CompletedWithError
, mockActivityReporter.ResultCompletionState);
348
Assert.NotEqual(CompletionState.
CompletedWithError
, mockActivityReporter.ResultCompletionState);
415
Assert.NotEqual(CompletionState.
CompletedWithError
, mockActivityReporter.ResultCompletionState);
511
Assert.NotEqual(CompletionState.
CompletedWithError
, mockActivityReporter.ResultCompletionState);
720
Assert.NotEqual(CompletionState.
CompletedWithError
, mockActivityReporter.ResultCompletionState);
783
Assert.NotEqual(CompletionState.
CompletedWithError
, mockActivityReporter.ResultCompletionState);
994
Assert.NotEqual(CompletionState.
CompletedWithError
, mockActivityReporter.ResultCompletionState);
Aspire.Hosting.Docker (2)
DockerComposeEnvironmentResource.cs (2)
272
await deployTask.CompleteAsync($"Docker Compose deployment failed: {ex.Message}", CompletionState.
CompletedWithError
, context.CancellationToken).ConfigureAwait(false);
326
await deployTask.CompleteAsync($"Docker Compose shutdown failed: {ex.Message}", CompletionState.
CompletedWithError
, context.CancellationToken).ConfigureAwait(false);
Aspire.Hosting.Tests (27)
Pipelines\DistributedApplicationPipelineTests.cs (2)
874
Assert.Contains(reporter.CompletedSteps, step => step.StepTitle == "failing-step" && step.CompletionState == CompletionState.
CompletedWithError
);
1252
Assert.Contains(reporter.CompletedSteps, step => step.StepTitle == "failing-step" && step.CompletionState == CompletionState.
CompletedWithError
);
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(new PublishCompletionOptions { CompletionMessage = expectedStatusText, CompletionState = 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(new PublishCompletionOptions { CompletionMessage = expectedStatusText, CompletionState = CompletionState.
CompletedWithError
}, CancellationToken.None);
1058
await task.CompleteAsync("Error message", CompletionState.
CompletedWithError
, CancellationToken.None);
1064
await task.CompleteAsync("Different error message", CompletionState.
CompletedWithError
, CancellationToken.None);
1070
Assert.Equal(CompletionState.
CompletedWithError
, taskInternal.CompletionState);
1106
await step.CompleteAsync("Error", CompletionState.
CompletedWithError
, CancellationToken.None);
1112
await step.CompleteAsync("Different error", CompletionState.
CompletedWithError
, CancellationToken.None);
1118
Assert.Equal(CompletionState.
CompletedWithError
, stepInternal.CompletionState);
1123
[InlineData(CompletionState.Completed, CompletionState.
CompletedWithError
)]
1125
[InlineData(CompletionState.CompletedWithWarning, CompletionState.
CompletedWithError
)]
1126
[InlineData(CompletionState.
CompletedWithError
, CompletionState.Completed)]
1127
[InlineData(CompletionState.
CompletedWithError
, CompletionState.CompletedWithWarning)]
1154
[InlineData(CompletionState.Completed, CompletionState.
CompletedWithError
)]
1156
[InlineData(CompletionState.CompletedWithWarning, CompletionState.
CompletedWithError
)]
1157
[InlineData(CompletionState.
CompletedWithError
, CompletionState.Completed)]
1158
[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
,