public IPostProcessor CreatePostProcessorFor(IPostProcessorsHolder holder, PostProcessDefinition definition, IEnumerable <IBuilder> dependencies) { if (scriptMappings.HasScriptFor(definition.PostProcessorId)) { var script = scriptMappings.GetScriptFor(definition.PostProcessorId); var postProcessor = builderFactory.CreatePythonScriptedPostProcessor(script, holder, definition, dependencies); return(postProcessor); } else { return(null); } }
public PythonScriptedPostProcessor CreatePythonScriptedPostProcessor(IPostProcessorScript script, IPostProcessorsHolder target, PostProcessDefinition definition, IEnumerable <IBuilder> dependencies) { return(store.Add(baseImpl.CreatePythonScriptedPostProcessor(script, target, definition, dependencies))); }