Class PipelineBuilder<T1, T2, T3, T4>
- Namespace
- Executables.Pipelines
- Assembly
- executables.dll
Fluent builder that composes synchronous pipeline middleware steps.
public class PipelineBuilder<T1, T2, T3, T4>
Type Parameters
T1Input type of the final composed handler.
T2Input type expected by current downstream segment.
T3Output type produced by current downstream segment.
T4Output type of the final composed handler.
- Inheritance
-
PipelineBuilder<T1, T2, T3, T4>
- Inherited Members
Methods
End(IExecutor<T2, T3>)
Finalizes composition by binding a terminal executor to the pipeline.
[Pure]
public virtual IExecutor<T1, T4> End(IExecutor<T2, T3> executor)
Parameters
executorIExecutor<T2, T3>Terminal executor invoked when the pipeline reaches the end.
Returns
- IExecutor<T1, T4>
Composed executor that represents the entire pipeline chain.
Exceptions
- ArgumentNullException
executoris null.
Use<T5, T6>(Middleware<T2, T5, T6, T3>)
Appends next pipeline step and keeps fluent composition typed.
public PipelineBuilder<T1, T5, T6, T4> Use<T5, T6>(Middleware<T2, T5, T6, T3> middleware)
Parameters
middlewareMiddleware<T2, T5, T6, T3>Pipeline step appended after current step.
Returns
- PipelineBuilder<T1, T5, T6, T4>
New builder with updated downstream input and output types.
Type Parameters
T5Input type expected by the appended downstream segment.
T6Output type produced by the appended downstream segment.