Esempio n. 1
0
        public LightflowBuilderNode <TLightflowInput, TOutput, TContext> Use <TOutput>(Func <ILightflowStep <TContext, TLightflowInput, TOutput> > factory)
        {
            var steps = new List <LightflowStepBaseInvoker>();

            var node = new LightflowBuilderNode <TLightflowInput, TLightflowInput, TContext>(steps);

            return(node.Use(factory));
        }
Esempio n. 2
0
        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));
        }