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