private bool actionSame( ICacheFilter cr, MvcContext ctx )
        {
            Dictionary<String, String> actions = cr.Actions;

            foreach (KeyValuePair<String, String> kv in actions) {

                if (ctx.controller.GetType().FullName.Equals( kv.Key ) == false &&
                    ctx.controller.GetType().BaseType.FullName.Equals( kv.Key ) == false
                    ) continue;

                if (actionSame( kv.Value, ctx )) return true;
            }

            return false;
        }
Пример #2
0
        private bool actionSame(ICacheFilter cr, MvcContext ctx)
        {
            Dictionary <String, String> actions = cr.Actions;

            foreach (KeyValuePair <String, String> kv in actions)
            {
                if (ctx.controller.GetType().FullName.Equals(kv.Key) == false &&
                    ctx.controller.GetType().BaseType.FullName.Equals(kv.Key) == false
                    )
                {
                    continue;
                }

                if (actionSame(kv.Value, ctx))
                {
                    return(true);
                }
            }

            return(false);
        }
Пример #3
0
 public void Filter(ICacheFilter <string, string> cacheFilter) => cacheIndeces.ForEach(x => x.Filter(cacheFilter));