Exemple #1
0
        public static IStepExecutor Create(Step step, StepContext context)
        {
            var executor = new StepExecutor(step, context);

            executor.Node   = context.WorkflowContext.GetNode(step.Node);
            executor.Shell  = context.Node.CreateShell(step.Shell);
            executor.Output = new ConsoleOutput();
            return(executor);
        }
Exemple #2
0
 public static Task <StepResult> Run(this Step step, StepContext context)
 {
     return(StepExecutor.Create(step, context).Run());
 }