IReportingTask.CompleteAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Completes the task with the specified completion message.
public System.Threading.Tasks.Task CompleteAsync(string? completionMessage = default, Aspire.Hosting.Pipelines.CompletionState completionState = Aspire.Hosting.Pipelines.CompletionState.Completed, System.Threading.CancellationToken cancellationToken = default);
abstract member CompleteAsync : string * Aspire.Hosting.Pipelines.CompletionState * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function CompleteAsync (Optional completionMessage As String = Nothing, Optional completionState As CompletionState = Aspire.Hosting.Pipelines.CompletionState.Completed, Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- completionMessage
- String
Optional completion message that will appear as a dimmed child message.
- completionState
- CompletionState
The completion state of the task.
- cancellationToken
- CancellationToken
The cancellation token.