예제 #1
0
        public override void AddCacheRule(CacheRule cacheRule)
        {
            var rule = cacheRule as ComponentCacheRule;

            if (_cached.ContainsKey(rule.ComponentType) == false)
            {
                _rules.Add(rule.ComponentType, rule.CacheMode);
                _cached.Add(rule.ComponentType, new ZIndexSortedSet <Component>());
            }
        }
예제 #2
0
        public override void AddCacheRule(CacheRule cacheRule)
        {
            var rule       = cacheRule as MethodCacheRule;
            var methodName = rule.MethodName;

            if (_cached.ContainsKey(methodName) == false)
            {
                _rules.Add(methodName, rule.CacheMode);
                _cached.Add(methodName, new ZIndexSortedList <Component, Action>());
                _methodRecievers.Add(methodName, rule.MethodReciever);
            }
        }
예제 #3
0
 public abstract void AddCacheRule(CacheRule rule);