Beispiel #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);
        }
Beispiel #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);
        }