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>()); } }
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); } }
public abstract void AddCacheRule(CacheRule rule);