-
Notifications
You must be signed in to change notification settings - Fork 0
Sub pipelines
Fernando Arias edited this page Jun 17, 2020
·
2 revisions
You can create sub-pipelines by just adding a step that is actually a pipeline, since both steps and pipelines implement the IPipelineStep interface.
Let's see an example:
var pipeline = new Pipeline<string, int>(x => x
.AddStep(new Step1())
.AddStep(new Pipeline<ConnectorRequest, ConnectorResponse>(y => y
.AddStep(new Step2_1())
.AddStep(new Step2_2())
.AddStep(new Step2_3()))
)
.AddStep(new Step3()));
If you need one of the steps to receive a parameter from the parent pipeline, you can use the IPipelineStepWithArgs interface. See this page for help.