Skip to content
DocsTry Aspire
DocsTry

IReportingStep

Interface
📦 Aspire.Hosting v13.4.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

Completes the reporting step with plain-text completion text.
completeStep(
completionText: string,
completionState?: string,
cancellationToken?: cancellationToken): void
completionTextstring
completionStatestringoptional= completed
cancellationTokencancellationTokenoptional
Completes the reporting step with Markdown-formatted completion text.
completeStepMarkdown(
markdownString: string,
completionState?: string,
cancellationToken?: cancellationToken): void
markdownStringstring
completionStatestringoptional= completed
cancellationTokencancellationTokenoptional
Creates a reporting task with Markdown-formatted status text.
createMarkdownTask(
markdownString: string,
cancellationToken?: cancellationToken): IReportingTask
markdownStringstring
cancellationTokencancellationTokenoptional
IReportingTask
Creates a reporting task with plain-text status text.
createTask(
statusText: string,
cancellationToken?: cancellationToken): IReportingTask
statusTextstring
cancellationTokencancellationTokenoptional
IReportingTask
methodlogStep
Logs a plain-text message for the reporting step.
logStep(
level: string,
message: string): void
levelstring
messagestring
Logs a Markdown-formatted message for the reporting step.
logStepMarkdown(
level: string,
markdownString: string): void
levelstring
markdownStringstring