Exemple #1
0
 public static void Build(IEnumerable <MethodInfo> allActions, List <SitkaRouteTableEntry> defaultRoutes, Dictionary <string, string> areasDictionary)
 {
     if (!_hasRouteTableBeenBuiltYet)
     {
         var builder = new RouteTableBuilder(RouteTable.Routes, defaultRoutes, areasDictionary);
         builder.SetupRouteTable(allActions);
         _hasRouteTableBeenBuiltYet = true;
     }
 }
Exemple #2
0
 public static void Build(IEnumerable <MethodInfo> allActions, List <SitkaRouteTableEntry> defaultRoutes, Dictionary <string, string> areasDictionary, bool forceReload = false)
 {
     if (!_hasRouteTableBeenBuiltYet || forceReload)
     {
         // If we've loaded before, and we are forcibly reloading..
         if (_hasRouteTableBeenBuiltYet && forceReload)
         {
             // Clear prior routes first.
             ClearRoutes();
         }
         var builder = new RouteTableBuilder(RouteTable.Routes, defaultRoutes, areasDictionary);
         builder.SetupRouteTable(allActions);
         _hasRouteTableBeenBuiltYet = true;
     }
 }