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