Beispiel #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);
            }
        }
Beispiel #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]);
        }