예제 #1
0
        public IPipeline CreatePipeline(T command)
        {
            var steps = StepsTypes.Select(s =>
            {
                return (IStep<T>)ServiceProvider.GetRequiredService(s);
            });

            var pipeline = new Pipeline<T>(command);
            pipeline.AddSteps(steps);
            return pipeline;
        }