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