Table of Contents

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

T1

Input type of the final composed handler.

T2

Input type expected by current downstream segment.

T3

Output type produced by current downstream segment.

T4

Output 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

executor IExecutor<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

executor is 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

middleware Middleware<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

T5

Input type expected by the appended downstream segment.

T6

Output type produced by the appended downstream segment.