Exemplo n.º 1
0
 private void AddMethodRoutesToCache(NancyModule module, string moduleKey, string method)
 {
     foreach (var description in module.GetRouteDescription(method))
     {
         _Cache.Add(new RouteCacheEntry(moduleKey, method, description.Path, description.Condition));
     }
 }
Exemplo n.º 2
0
 private static void AddModuleMetaToApplication(INancyApplication application, NancyModule mod, string action)
 {
     IList<ModuleMeta> postList = GetModuleMetaList(application, action);
     postList.Add(new ModuleMeta(mod.GetType(), mod.GetRouteDescription(action)));
 }