Example #1
0
        public PipelineSegmentRunner(string pipelineName,
                                     IPipelineRepository pipelineRepository,
                                     IInternalPipelineRunner internalPipelineRunner)
        {
            if (pipelineName == null)
            {
                throw new ArgumentNullException("pipelineName");
            }
            if (string.IsNullOrWhiteSpace(pipelineName))
            {
                throw new ArgumentException("Pipeline name cannot be empty", "pipelineName");
            }
            if (pipelineRepository == null)
            {
                throw new ArgumentNullException("pipelineRepository");
            }
            if (internalPipelineRunner == null)
            {
                throw new ArgumentNullException("internalPipelineRunner");
            }

            this.pipelineName           = pipelineName;
            this.pipelineRepository     = pipelineRepository;
            this.internalPipelineRunner = internalPipelineRunner;
        }
Example #2
0
        internal PipelineRunner(string name,
                                IPipelineRepository pipelineRepository,
                                IInternalPipelineRunner internalPipelineRunner,
                                IPipelineContext context)
        {
            this.internalPipelineRunner = internalPipelineRunner;
            this.context = context;

            pipeline = pipelineRepository.Get(name);
        }