Beispiel #1
0
 public DefaultRouteResolver(
     IChatModuleCatalog catalog,
     IRouteCache routeCache)
 {
     this.catalog    = catalog;
     this.routeCache = routeCache;
 }
Beispiel #2
0
 /// <summary>
 /// Creates a new instance of the <see cref="DefaultRouteCache"/> class.
 /// </summary>
 /// <param name="moduleCatalog"></param>
 public DefaultRouteCache(IChatModuleCatalog moduleCatalog)
 {
     this.moduleCatalog = moduleCatalog;
     cache = new Lazy <IEnumerable <CachedRoute> >(() => LoadRoutes());
 }