Пример #1
0
        public void SetRemoveCurrentNavigationCache()
        {
            Web.Common.Helper.InMemoryCache cacheFunc = new Web.Common.Helper.InMemoryCache();
            string currNavigationKey = CurrentRole.Name + CurrentRole.ID;
            List <CMSNavigation> cachedsharingskey = cacheFunc.GET <List <CMSNavigation> >(currNavigationKey);

            if (cachedsharingskey != null)
            {
                cacheFunc.REMOVE(currNavigationKey);
            }
            SetCurrentNavigationCache();
        }
Пример #2
0
        public void SetRemoveCurrentAllowedControllerActionCache()
        {
            Web.Common.Helper.InMemoryCache cacheFunc = new Web.Common.Helper.InMemoryCache();
            string currNavigationKey = "_ALLOWEDCONTROLLER_" + CurrentRole.Name + CurrentRole.ID;
            List <CMSNavigation> cachedsharingskey = cacheFunc.GET <List <CMSNavigation> >(currNavigationKey);

            if (cachedsharingskey != null)
            {
                cacheFunc.REMOVE(currNavigationKey);
            }
            SetCurrentAllowedControllerActionCache();
        }