示例#1
0
        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));
        }
示例#2
0
 public LightflowStepInstanceInvoker(ILightflowStep step, Type contextType)
     : base(contextType, step.InputType, step.OutputType)
 {
     this.step = step;
 }
示例#3
0
        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));
        }