Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithPipelineStepFactory

Method
📦 Aspire.Hosting v17.0.0
func (Resource) WithPipelineStepFactory(
stepName string,
callback func(arg PipelineStepContext),
options ...*WithPipelineStepFactoryOptions,
) Resource

Signature

methodWithPipelineStepFactorybuilder
Adds a pipeline step to the resource that will be executed during deployment.
WithPipelineStepFactory(
stepName string,
callback func(arg PipelineStepContext),
options ...*WithPipelineStepFactoryOptions,
) Resource
stepNamestringThe unique name of the pipeline step.
callbackfunc(arg PipelineStepContext)callbackThe callback to execute when the step runs.
options...*WithPipelineStepFactoryOptionsOptional settings, described under Options.

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

DependsOn[]stringOptional step names that this step depends on.
RequiredBy[]stringOptional step names that require this step.
Tags[]stringOptional tags that categorize this step.
Description*stringAn optional human-readable description of the step.
Resource

The resource builder for chaining.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: