public LightflowBuilderNode <TLightflowInput, TOutput, TContext> Use <TOutput>(LightflowHandler <TContext, TStepInput, TOutput> handler) { this.steps.Add(new LightflowStepInstanceInvoker( new HandlerLightflowStep <TContext, TStepInput, TOutput>(handler), typeof(TContext))); return(new LightflowBuilderNode <TLightflowInput, TOutput, TContext>(this.steps)); }
public HandlerLightflowStep(LightflowHandler <TContext, TInput, TOutput> handler) { this.handler = handler; }
public LightflowBuilderNode <TLightflowInput, TOutput, TContext> Use <TOutput>(LightflowHandler <TContext, TLightflowInput, TOutput> handler) { var steps = new List <LightflowStepBaseInvoker>(); var node = new LightflowBuilderNode <TLightflowInput, TLightflowInput, TContext>(steps); return(node.Use(handler)); }