18 references to CompletedWithError
Aspire.Hosting (10)
DistributedApplicationRunner.cs (1)
64
await activityReporter.CompletePublishAsync(completionMessage: ex.Message, completionState: CompletionState.
CompletedWithError
, isDeploy: publishingOptions.Value.Deploy, cancellationToken: stoppingToken).ConfigureAwait(false);
Publishing\Publisher.cs (3)
65
0 => ("No resources in the distributed application model support deployment.", CompletionState.
CompletedWithError
),
73
0 => ("No resources in the distributed application model support publishing.", CompletionState.
CompletedWithError
),
84
if (taskInfo.State == CompletionState.
CompletedWithError
)
Publishing\PublishingActivityReporter.cs (2)
32
CompletionState.
CompletedWithError
=> CompletionStates.CompletedWithError,
209
CompletionState.
CompletedWithError
=> $"{operationName} completed with errors",
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\PublishingStep.cs (1)
149
CompletionState.
CompletedWithError
=> $"{Title} completed with errors",
Publishing\ResourceContainerImageBuilder.cs (1)
156
await step.CompleteAsync("Building container images failed", CompletionState.
CompletedWithError
, cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Tests (8)
Publishing\PublishingActivityReporterTests.cs (7)
135
await step.CompleteAsync(completionText, isError ? CompletionState.
CompletedWithError
: CompletionState.Completed, CancellationToken.None);
281
[InlineData(CompletionState.
CompletedWithError
, "Publishing completed with errors", true)]
310
await reporter.CompletePublishAsync(expectedStatusText, CompletionState.
CompletedWithError
, isDeploy: false, CancellationToken.None);
343
await step3.CompleteAsync("Step 3 failed", CompletionState.
CompletedWithError
, CancellationToken.None);
690
Assert.Equal(CompletionState.
CompletedWithError
, taskInternal.CompletionState);
707
[InlineData(CompletionState.
CompletedWithError
, "Deployment completed with errors", true)]
736
await reporter.CompletePublishAsync(expectedStatusText, CompletionState.
CompletedWithError
, isDeploy: true, CancellationToken.None);
Publishing\PublishingExtensionsTests.cs (1)
119
Assert.Equal(CompletionState.
CompletedWithError
, taskInternal.CompletionState);