Skip to content
Docs Try Aspire

IReportingStep

Interface
📦 Aspire.Hosting v13.2.0
interface IReportingStep {
completeStep(
completionText: string,
completionState?: string,
cancellationToken?: cancellationToken): void;
completeStepMarkdown(
markdownString: string,
completionState?: string,
cancellationToken?: cancellationToken): void;
createMarkdownTask(
markdownString: string,
cancellationToken?: cancellationToken): IReportingTask;
createTask(
statusText: string,
cancellationToken?: cancellationToken): IReportingTask;
logStep(
level: string,
message: string): void;
logStepMarkdown(
level: string,
markdownString: string): void;
}

Methods

method completeStep
Completes the reporting step with plain-text completion text
completeStep(
completionText: string,
completionState?: string,
cancellationToken?: cancellationToken): void
completionText string
completionState string optional = completed
cancellationToken cancellationToken optional
Completes the reporting step with Markdown-formatted completion text
completeStepMarkdown(
markdownString: string,
completionState?: string,
cancellationToken?: cancellationToken): void
markdownString string
completionState string optional = completed
cancellationToken cancellationToken optional
Creates a reporting task with Markdown-formatted status text
createMarkdownTask(
markdownString: string,
cancellationToken?: cancellationToken): IReportingTask
markdownString string
cancellationToken cancellationToken optional
IReportingTask
method createTask
Creates a reporting task with plain-text status text
createTask(
statusText: string,
cancellationToken?: cancellationToken): IReportingTask
statusText string
cancellationToken cancellationToken optional
IReportingTask
method logStep
Logs a plain-text message for the reporting step
logStep(
level: string,
message: string): void
level string
message string
Logs a Markdown-formatted message for the reporting step
logStepMarkdown(
level: string,
markdownString: string): void
level string
markdownString string