@@ -12,24 +12,24 @@ public static ForEachBlockBuilderWrapper<TStart, TOutput> ForEach<TStart, TOutpu
12
12
13
13
public class ForEachBlockBuilderWrapper < TStart , TOutput > ( IPipelineBuilder < TStart , TOutput > parent )
14
14
{
15
- public IPipelineBuilder < TStart , TOutput > Type < TElement > ( Func < IPipelineStartBuilder < TElement , TElement > , IPipelineBuilder > builder )
15
+ public IPipelineBuilder < TStart , TOutput > Type < TElement > ( Func < IPipelineStartBuilder < TElement , TElement > , IPipelineBuilder > builder )
16
16
{
17
- return Type < TElement > ( true , builder ) ;
17
+ return Type < TElement > ( true , builder ) ;
18
18
}
19
19
20
- public IPipelineBuilder < TStart , TOutput > Type < TElement > ( bool inheritMiddleware , Func < IPipelineStartBuilder < TElement , TElement > , IPipelineBuilder > builder )
20
+ public IPipelineBuilder < TStart , TOutput > Type < TElement > ( bool inheritMiddleware , Func < IPipelineStartBuilder < TElement , TElement > , IPipelineBuilder > builder )
21
21
{
22
- ArgumentNullException . ThrowIfNull ( builder ) ;
22
+ ArgumentNullException . ThrowIfNull ( builder ) ;
23
23
24
24
var ( parentFunction , parentMiddleware ) = parent . GetPipelineFunction ( ) ;
25
- var block = PipelineFactory . Start < TElement > ( inheritMiddleware ? parentMiddleware : null ) ;
26
- var result = builder ( block ) ;
25
+ var block = PipelineFactory . Start < TElement > ( inheritMiddleware ? parentMiddleware : null ) ;
26
+ var result = builder ( block ) ;
27
27
var function = result . CastFunction < TElement , object > ( ) ;
28
28
var middleware = ( result as IPipelineFunctionProvider < TElement , object > ) ? . GetPipelineFunction ( ) . Middleware ;
29
29
30
30
return new PipelineBuilder < TStart , TOutput >
31
31
{
32
- Function = new ForEachBlockBinder < TStart , TOutput , TElement > ( parentFunction ) . Bind ( function ) ,
32
+ Function = new ForEachBlockBinder < TStart , TOutput , TElement > ( parentFunction ) . Bind ( function ) ,
33
33
Middleware = parentMiddleware
34
34
} ;
35
35
}
0 commit comments