Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

DistributedApplicationPipeline.AddStep

Method
📦 Aspire.Hosting v17.0.0
type DistributedApplicationPipeline interface {
// ... omitted for brevity
AddStep(
stepName string,
callback func(arg PipelineStepContext),
options ...*AddStepOptions,
) error
}

Signature

methodAddStep
Adds an application-level pipeline step in a TypeScript-friendly shape.
AddStep(
stepName string,
callback func(arg PipelineStepContext),
options ...*AddStepOptions,
) error
stepNamestringThe unique name of the pipeline step.
callbackfunc(arg PipelineStepContext)callbackThe callback to execute when the step runs.
options...*AddStepOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*AddStepOptions argument.

DependsOn[]stringOptional step names that this step depends on.
RequiredBy[]stringOptional step names that require this step.
error

Returns error.

Defined on

This method is defined on the following type: