1 write to CompletionState
Aspire.Hosting (1)
Publishing\PublishingActivityReporter.cs (1)
173task.CompletionState = completionState;
13 references to CompletionState
Aspire.Hosting (5)
Publishing\PublishingActivityReporter.cs (2)
161if (task.CompletionState != CompletionState.InProgress) 163throw new InvalidOperationException($"Cannot complete task '{task.Id}' with state '{task.CompletionState}'. Only 'InProgress' tasks can be completed.");
Publishing\PublishingStep.cs (2)
84if ((int)task.CompletionState > (int)maxState) 86maxState = task.CompletionState;
Publishing\PublishingTask.cs (1)
80if (CompletionState != CompletionState.InProgress)
Aspire.Hosting.Tests (8)
Publishing\PublishingActivityReporterTests.cs (4)
74Assert.Equal(CompletionState.InProgress, taskInternal.CompletionState); 245Assert.Equal(CompletionState.Completed, taskInternal.CompletionState); 655Assert.Equal(CompletionState.CompletedWithWarning, taskInternal.CompletionState); 690Assert.Equal(CompletionState.CompletedWithError, taskInternal.CompletionState);
Publishing\PublishingExtensionsTests.cs (4)
30Assert.Equal(CompletionState.InProgress, taskInternal.CompletionState); 84Assert.Equal(CompletionState.Completed, taskInternal.CompletionState); 102Assert.Equal(CompletionState.CompletedWithWarning, taskInternal.CompletionState); 119Assert.Equal(CompletionState.CompletedWithError, taskInternal.CompletionState);