public static void InitializeState(this HttpRequest req)
        {
            var actionId = req.ActionId();

            if (string.IsNullOrWhiteSpace(actionId))
            {
                actionId = Guid.NewGuid().ToString();
                req.Headers.Add(ActionIdName, actionId);
            }
            StateHelper.InitializeState(actionId);
        }
        public static StateDictionary GetState(this HttpResponse req)
        {
            var actionId = req.ActionId();

            return(StateHelper.InitializeState(actionId));
        }
        public static StateDictionary GetState(this ResultWrapper result)
        {
            var actionId = result.ActionId;

            return(StateHelper.InitializeState(actionId));
        }