IReportingTask Methods
Interface Methods 2 members
Represents a publishing task, which belongs to a step.
CompleteAsync(string?, CompletionState, CancellationToken) Section titled CompleteAsync(string?, CompletionState, CancellationToken) abstract Task Completes the task with the specified completion message.
public interface IReportingTask{ public abstract Task CompleteAsync( string? completionMessage = null, CompletionState completionState = CompletionState.Completed, CancellationToken cancellationToken = default(CancellationToken)) { // ... }}Parameters
completionMessage string? optional Optional completion message that will appear as a dimmed child message. completionState CompletionState optional The completion state of the task. cancellationToken CancellationToken optional The cancellation token. UpdateAsync(string, CancellationToken) Section titled UpdateAsync(string, CancellationToken) abstract Task Updates the status text of this task.
public interface IReportingTask{ public abstract Task UpdateAsync( string statusText, CancellationToken cancellationToken = default(CancellationToken)) { // ... }}Parameters
statusText string The new status text. cancellationToken CancellationToken optional The cancellation token.