Exemplo n.º 1
0
        public static void Initialize(Type type, string[] assemblyNames, params string[] modulePattern)
        {
            CacheRouteMapping mapping;

            if (!_routeDictioary.TryGetValue(type, out mapping))
            {
                mapping = new CacheRouteMapping();
                mapping.Initialize(assemblyNames, modulePattern);
                _routeDictioary[type] = mapping;
            }
        }
Exemplo n.º 2
0
 public static bool TryGetValue(Type type, out CacheRouteMapping mapping)
 {
     return(_routeDictioary.TryGetValue(type, out mapping));
 }