Пример #1
0
        public override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            if (!RouteFlow.OnPath(Path.Name))
            {
                return;
            }

            var actionValues = filterContext.ActionParameters;

            if (actionValues.ContainsKey(AssignTo))
            {
                actionValues[AssignTo] = RouteFlow.GetCorrelationId(Name);
            }
        }
Пример #2
0
        public override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            if (!RouteFlow.OnPath(Path.Name))
            {
                return;
            }

            var actionValues = filterContext.ActionParameters;

            if (actionValues[Value] == null)
            {
                // Attempting to set a correlation with a null value (maybe due to restarting a routeflow step)
                var value = RouteFlow.GetCorrelationId(As);
                if (value != null)
                {
                    actionValues[Value] = RouteFlow.GetCorrelationId(As);
                    return;
                }
            }
            RouteFlow.SetCorrelationId(As, actionValues[Value]);
        }
Пример #3
0
 public override void OnActionExecuting(ActionExecutingContext filterContext)
 {
     RouteFlow.Prepare(filterContext);
 }
Пример #4
0
 public ActionResult Resume()
 {
     return(RouteFlow.Resume());
 }
Пример #5
0
 public ActionResult NextYES(string skiptoyes)
 {
     return(RouteFlow.SkipTo(skiptoyes));
 }
Пример #6
0
 public ActionResult NextNO(string skiptono)
 {
     return(RouteFlow.SkipTo(skiptono));
 }