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