Table of Contents

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

T1

Input type of the final composed async handler.

T2

Input type expected by current downstream async segment.

T3

Output type produced by current downstream async segment.

T4

Output 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

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

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

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

T5

Input type expected by the appended downstream async segment.

T6

Output type produced by the appended downstream async segment.