IDistributedApplicationPipeline.AddStep Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| AddStep(PipelineStep) |
Adds a deployment step to the pipeline. |
| AddStep(String, Func<PipelineStepContext,Task>, Object, Object) |
Adds a deployment step to the pipeline. |
AddStep(PipelineStep)
Adds a deployment step to the pipeline.
public void AddStep(Aspire.Hosting.Pipelines.PipelineStep step);
abstract member AddStep : Aspire.Hosting.Pipelines.PipelineStep -> unit
Public Sub AddStep (step As PipelineStep)
Parameters
- step
- PipelineStep
The pipeline step to add.
Applies to
AddStep(String, Func<PipelineStepContext,Task>, Object, Object)
Adds a deployment step to the pipeline.
public void AddStep(string name, Func<Aspire.Hosting.Pipelines.PipelineStepContext,System.Threading.Tasks.Task> action, object? dependsOn = default, object? requiredBy = default);
abstract member AddStep : string * Func<Aspire.Hosting.Pipelines.PipelineStepContext, System.Threading.Tasks.Task> * obj * obj -> unit
Public Sub AddStep (name As String, action As Func(Of PipelineStepContext, Task), Optional dependsOn As Object = Nothing, Optional requiredBy As Object = Nothing)
Parameters
- name
- String
The unique name of the step.
- action
- Func<PipelineStepContext,Task>
The action to execute for this step.
- dependsOn
- Object
The name of the step this step depends on, or a list of step names.
- requiredBy
- Object
The name of the step that requires this step, or a list of step names.