Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddStep

Method
📦 Aspire.Hosting v17.0.0
func (DistributedApplicationPipeline) 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.

Applies to

This method applies to the following types: