Example #1
0
        public HomeController(IDistributedCache _distributedCache)
        {
            distributedCache = _distributedCache;

            flowBuilder = new FlowBuilder();

            flowBuilder
            .AddFlow((a, flowId) => FirstMethod((int)a))
            .AddFlow((a, flowId) => SecondMethod((int)a))
            .AddActionFlow((a, flowId) => RedirectFunction(a.ToString(), flowId))
            .AddFlow((a, flowId) => HandleResponseFromAPI(a as FormCollection));
        }