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; }
internal PipelineRunner(string name, IPipelineRepository pipelineRepository, IInternalPipelineRunner internalPipelineRunner, IPipelineContext context) { this.internalPipelineRunner = internalPipelineRunner; this.context = context; pipeline = pipelineRepository.Get(name); }