Beispiel #1
0
 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);
     }
 }
Beispiel #2
0
 public PythonScriptedPostProcessor CreatePythonScriptedPostProcessor(IPostProcessorScript script, IPostProcessorsHolder target,
                                                                      PostProcessDefinition definition, IEnumerable <IBuilder> dependencies)
 {
     return(store.Add(baseImpl.CreatePythonScriptedPostProcessor(script, target, definition, dependencies)));
 }