public IPipeline Add(string name, params IModule[] modules) { if (string.IsNullOrWhiteSpace(name)) { name = "Pipeline " + (_pipelines.Count + 1); } if (_pipelines.ContainsKey(name)) { throw new ArgumentException("Pipelines must have a unique name."); } Pipeline pipeline = new Pipeline(name, _engine, modules); _pipelines.Add(name, pipeline); return pipeline; }
public ExecutionContext(Engine engine, Pipeline pipeline) { _engine = engine; _pipeline = pipeline; }