19 references to CompletedWithError
Aspire.Hosting (13)
DistributedApplicationRunner.cs (1)
63await activityReporter.CompletePublishAsync(CompletionState.CompletedWithError, stoppingToken).ConfigureAwait(false);
Publishing\Publisher.cs (3)
640 => ("No resources in the distributed application model support deployment.", CompletionState.CompletedWithError), 720 => ("No resources in the distributed application model support publishing.", CompletionState.CompletedWithError), 92if (taskInfo.State == CompletionState.CompletedWithError)
Publishing\PublishingActivityProgressReporter.cs (4)
164CompletionState.CompletedWithError => $"{Title} completed with errors", 278await Reporter.CompleteTaskAsync(this, CompletionState.CompletedWithError, completionMessage, cancellationToken).ConfigureAwait(false); 375CompletionState.CompletedWithError => CompletionStates.CompletedWithError, 551CompletionState.CompletedWithError => "Publishing completed with errors",
Publishing\PublishingExtensions.cs (2)
81await step.Reporter.CompleteStepAsync(step, completionText, CompletionState.CompletedWithError, cancellationToken).ConfigureAwait(false); 169await task.Reporter.CompleteTaskAsync(task, CompletionState.CompletedWithError, errorMessage, cancellationToken).ConfigureAwait(false);
Publishing\ResourceContainerImageBuilder.cs (3)
73CompletionState.CompletedWithError, 77await activityReporter.CompleteStepAsync(step, "Building container images failed", CompletionState.CompletedWithError, cancellationToken: cancellationToken).ConfigureAwait(false); 83containerRuntimeHealthy ? CompletionState.Completed : CompletionState.CompletedWithError,
Aspire.Hosting.Tests (6)
Publishing\PublishingActivityProgressReporterTests.cs (5)
131await reporter.CompleteStepAsync(step, completionText, isError ? CompletionState.CompletedWithError : CompletionState.Completed, CancellationToken.None); 218[InlineData(CompletionState.CompletedWithError, true, false)] 271[InlineData(CompletionState.CompletedWithError, "Publishing completed with errors", true)] 312await reporter.CompleteTaskAsync(task3, CompletionState.CompletedWithError, null, CancellationToken.None); 313await reporter.CompleteStepAsync(step3, "Step 3 failed", CompletionState.CompletedWithError, CancellationToken.None);
Publishing\PublishingExtensionsTests.cs (1)
139Assert.Equal(CompletionState.CompletedWithError, task.CompletionState);