Class Pipeline
- Namespace
- Executables
- Assembly
- executables.dll
Entry point for building middleware pipelines.
public static class Pipeline
- Inheritance
-
Pipeline
- Inherited Members
Methods
Use(Action<Action>)
Starts a parameterless pipeline from a step that receives next action.
public static PipelineBuilder<Unit, Unit, Unit, Unit> Use(Action<Action> middleware)
Parameters
Returns
Exceptions
- ArgumentNullException
middlewareis null.
Use<T>(Action<Action<T>>)
Starts a parameterless void pipeline from a step that receives downstream typed action.
public static PipelineBuilder<Unit, T, Unit, Unit> Use<T>(Action<Action<T>> middleware)
Parameters
Returns
- PipelineBuilder<Unit, T, Unit, Unit>
Builder with downstream output fixed to Unit.
Type Parameters
TInput type accepted by the downstream action.
Exceptions
- ArgumentNullException
middlewareis null.
Use<T>(Action<Func<T>>)
Starts a parameterless void pipeline from a step that receives downstream parameterless function.
public static PipelineBuilder<Unit, Unit, T, Unit> Use<T>(Action<Func<T>> middleware)
Parameters
Returns
- PipelineBuilder<Unit, Unit, T, Unit>
Builder with downstream input fixed to Unit.
Type Parameters
TOutput type returned by the downstream parameterless function.
Exceptions
- ArgumentNullException
middlewareis null.
Use<T>(Action<T, Action>)
Starts a void pipeline from a step that forwards via parameterless action.
public static PipelineBuilder<T, Unit, Unit, Unit> Use<T>(Action<T, Action> middleware)
Parameters
Returns
- PipelineBuilder<T, Unit, Unit, Unit>
Builder whose downstream input and output types are Unit.
Type Parameters
TInput type accepted by the middleware.
Exceptions
- ArgumentNullException
middlewareis null.
Use<T>(Func<Action, T>)
Starts a parameterless pipeline that returns value and can invoke downstream parameterless action.
public static PipelineBuilder<Unit, Unit, Unit, T> Use<T>(Func<Action, T> middleware)
Parameters
Returns
- PipelineBuilder<Unit, Unit, Unit, T>
Builder with downstream input/output fixed to Unit.
Type Parameters
TOutput type returned by the middleware.
Exceptions
- ArgumentNullException
middlewareis null.
Use<T1, T2>(Action<Func<T1, T2>>)
Starts a parameterless void pipeline from a step that receives downstream typed function.
public static PipelineBuilder<Unit, T1, T2, Unit> Use<T1, T2>(Action<Func<T1, T2>> middleware)
Parameters
Returns
- PipelineBuilder<Unit, T1, T2, Unit>
Builder for appending next middleware steps and terminal executable.
Type Parameters
T1Input type expected by the downstream function.
T2Output type returned by the downstream function.
Exceptions
- ArgumentNullException
middlewareis null.
Use<T1, T2>(Action<T1, Action<T2>>)
Starts a void pipeline from a step that forwards via typed action.
public static PipelineBuilder<T1, T2, Unit, Unit> Use<T1, T2>(Action<T1, Action<T2>> middleware)
Parameters
Returns
- PipelineBuilder<T1, T2, Unit, Unit>
Builder whose downstream output type is Unit.
Type Parameters
T1Input type accepted by the middleware.
T2Input type accepted by the downstream action.
Exceptions
- ArgumentNullException
middlewareis null.
Use<T1, T2>(Action<T1, Func<T2>>)
Starts a void pipeline from a step that receives downstream parameterless function.
public static PipelineBuilder<T1, Unit, T2, Unit> Use<T1, T2>(Action<T1, Func<T2>> middleware)
Parameters
middlewareAction<T1, Func<T2>>Middleware action that can invoke downstream parameterless function.
Returns
- PipelineBuilder<T1, Unit, T2, Unit>
Builder with downstream input fixed to Unit.
Type Parameters
T1Input type accepted by the middleware.
T2Output type returned by the downstream parameterless function.
Exceptions
- ArgumentNullException
middlewareis null.
Use<T1, T2>(Func<Action<T1>, T2>)
Starts a parameterless pipeline that returns value and can invoke downstream typed action.
public static PipelineBuilder<Unit, T1, Unit, T2> Use<T1, T2>(Func<Action<T1>, T2> middleware)
Parameters
Returns
- PipelineBuilder<Unit, T1, Unit, T2>
Builder with downstream output fixed to Unit.
Type Parameters
T1Input type accepted by the downstream action.
T2Output type returned by the middleware.
Exceptions
- ArgumentNullException
middlewareis null.
Use<T1, T2>(Func<Func<T1>, T2>)
Starts a parameterless pipeline that returns value and can invoke downstream parameterless function.
public static PipelineBuilder<Unit, Unit, T1, T2> Use<T1, T2>(Func<Func<T1>, T2> middleware)
Parameters
middlewareFunc<Func<T1>, T2>Middleware function that can invoke downstream parameterless function.
Returns
- PipelineBuilder<Unit, Unit, T1, T2>
Builder with downstream input fixed to Unit.
Type Parameters
T1Output type returned by the downstream parameterless function.
T2Output type returned by the middleware.
Exceptions
- ArgumentNullException
middlewareis null.
Use<T1, T2>(Func<T1, Action, T2>)
Starts a pipeline from a step that forwards to downstream via parameterless Action.
public static PipelineBuilder<T1, Unit, Unit, T2> Use<T1, T2>(Func<T1, Action, T2> middleware)
Parameters
Returns
- PipelineBuilder<T1, Unit, Unit, T2>
Builder whose downstream input and output types are Unit.
Type Parameters
T1Input type accepted by the middleware.
T2Output type returned by the middleware.
Exceptions
- ArgumentNullException
middlewareis null.
Use<T1, T2, T3>(Action<T1, Func<T2, T3>>)
Starts a void pipeline from a step that receives downstream function.
public static PipelineBuilder<T1, T2, T3, Unit> Use<T1, T2, T3>(Action<T1, Func<T2, T3>> middleware)
Parameters
Returns
- PipelineBuilder<T1, T2, T3, Unit>
Builder for appending next middleware steps and terminal executable.
Type Parameters
T1Input type accepted by the middleware.
T2Input type expected by the downstream function.
T3Output type returned by the downstream function.
Exceptions
- ArgumentNullException
middlewareis null.
Use<T1, T2, T3>(Func<Func<T1, T2>, T3>)
Starts a parameterless pipeline that returns value and can invoke downstream typed function.
public static PipelineBuilder<Unit, T1, T2, T3> Use<T1, T2, T3>(Func<Func<T1, T2>, T3> middleware)
Parameters
Returns
- PipelineBuilder<Unit, T1, T2, T3>
Builder for appending next middleware steps and terminal executable.
Type Parameters
T1Input type expected by the downstream function.
T2Output type returned by the downstream function.
T3Output type returned by the middleware.
Exceptions
- ArgumentNullException
middlewareis null.
Use<T1, T2, T3>(Func<T1, Action<T2>, T3>)
Starts a pipeline from a step that forwards to downstream via typed Action<T>.
public static PipelineBuilder<T1, T2, Unit, T3> Use<T1, T2, T3>(Func<T1, Action<T2>, T3> middleware)
Parameters
Returns
- PipelineBuilder<T1, T2, Unit, T3>
Builder whose downstream output type is Unit.
Type Parameters
T1Input type accepted by the middleware.
T2Input type accepted by the downstream action.
T3Output type returned by the middleware.
Exceptions
- ArgumentNullException
middlewareis null.
Use<T1, T2, T3>(Func<T1, Func<T2>, T3>)
Starts a pipeline from a step that receives downstream parameterless function.
public static PipelineBuilder<T1, Unit, T2, T3> Use<T1, T2, T3>(Func<T1, Func<T2>, T3> middleware)
Parameters
middlewareFunc<T1, Func<T2>, T3>Middleware function that can invoke downstream parameterless function.
Returns
- PipelineBuilder<T1, Unit, T2, T3>
Builder with downstream input fixed to Unit.
Type Parameters
T1Input type accepted by the middleware.
T2Output type returned by the downstream function.
T3Output type returned by the middleware.
Exceptions
- ArgumentNullException
middlewareis null.
Use<T1, T2, T3, T4>(Func<T1, Func<T2, T3>, T4>)
Starts a pipeline from a step that receives downstream call as Func<T, TResult>.
public static PipelineBuilder<T1, T2, T3, T4> Use<T1, T2, T3, T4>(Func<T1, Func<T2, T3>, T4> middleware)
Parameters
Returns
- PipelineBuilder<T1, T2, T3, T4>
Builder for appending next middleware steps and terminal executable.
Type Parameters
T1Input type accepted by the middleware.
T2Input type expected by the downstream function.
T3Output type returned by the downstream function.
T4Output type returned by the middleware.
Exceptions
- ArgumentNullException
middlewareis null.