public LightflowBuilderNode <TLightflowInput, TOutput, TContext> Use <TOutput>(ILightflowStep <TContext, TStepInput, TOutput> step) { this.steps.Add(new LightflowStepInstanceInvoker(step, typeof(TContext))); return(new LightflowBuilderNode <TLightflowInput, TOutput, TContext>(this.steps)); }
public LightflowStepInstanceInvoker(ILightflowStep step, Type contextType) : base(contextType, step.InputType, step.OutputType) { this.step = step; }
public LightflowBuilderNode <TLightflowInput, TOutput, TContext> Use <TOutput>(ILightflowStep <TContext, TLightflowInput, TOutput> step) { var steps = new List <LightflowStepBaseInvoker>(); var node = new LightflowBuilderNode <TLightflowInput, TLightflowInput, TContext>(steps); return(node.Use(step)); }