Ejemplo n.º 1
0
        public static IPipeline Create(Action <IPipelineConfig> configure = null)
        {
            var config = new PipelineConfig() as IPipelineConfig;

            configure?.Invoke(config);

            return(new CorePipeline(config) as IPipeline);
        }
Ejemplo n.º 2
0
        public static IPipeline Create <TPipeline>(Action <IPipelineConfig> configure = null)
            where TPipeline : CorePipeline, new()
        {
            var config = new PipelineConfig() as IPipelineConfig;

            configure?.Invoke(config);

            var pipeline = new TPipeline() as IPipeline;

            pipeline.Configuration = config;

            return(pipeline);
        }