public BatchProcessingBehaviourPipeline Build(IContext ctx)
        {
            var pipeline = new BatchProcessingBehaviourPipeline();

            foreach (var batchPipelineBehaviourType in _batchPipelineBehaviourTypes)
            {
                pipeline.AddBehaviour((IBatchProcessingBehaviour)ctx.GetInstance(batchPipelineBehaviourType));
            }
            return(pipeline);
        }
        public BatchProcessingBehaviourPipeline Build(IServiceProvider provider)
        {
            var pipeline = new BatchProcessingBehaviourPipeline();

            foreach (var batchPipelineBehaviourType in _batchPipelineBehaviourTypes)
            {
                pipeline.AddBehaviour((IBatchProcessingBehaviour)provider.GetService(batchPipelineBehaviourType));
            }
            return(pipeline);
        }
 public static BatchProcessingBehaviourPipeline AddBehaviour <T>(this BatchProcessingBehaviourPipeline pipleline, IContext context) where T : IBatchProcessingBehaviour
 {
     return(pipleline.AddBehaviour(context.GetInstance <T>()));
 }
 public static BatchProcessingBehaviourPipeline AddBehaviour <T>(this BatchProcessingBehaviourPipeline pipleline, IServiceProvider provider) where T : IBatchProcessingBehaviour
 {
     return(pipleline.AddBehaviour(provider.GetService <T>()));
 }