Exemplo n.º 1
0
        public virtual IHandler GetHandler(String key)
        {
            if (key == null)
            {
                throw new ArgumentNullException("key");
            }

            if (selectors != null)
            {
                var selectorsOpinion = GetSelectorsOpinion(key, null);
                if (selectorsOpinion != null)
                {
                    return(selectorsOpinion);
                }
            }

            IHandler value;

            HandlerByKeyCache.TryGetValue(key, out value);
            return(value);
        }
Exemplo n.º 2
0
 public virtual bool Contains(String key)
 {
     return(HandlerByKeyCache.ContainsKey(key));
 }