Как объясняет Фил Хаак в своей записи в блоге, Route Debugger помогает визуализировать ваши таблицы маршрутизации.
Мой сайт, однако, получает свою маршрутизацию, внедренную зависимостью MVCTurbine (использующей Unity) как:
public class DefaultRoutRegistration : IRouteRegistrator
{
public void Register(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
"Accounts",
"Accounts/{userName}/{action}",
new { controller = "Account", action = "Index" }
);
routes.MapRoute(
"Default", // Route name
"{controller}/{action}/{id}", // URL with parameters
new { controller = "Home", action = "Index", id = "" } // Parameter defaults
);
RouteDebug.RouteDebugger.RewriteRoutesForTesting(RouteTable.Routes);
}
}
Где именно я могу добавить RouteDebug.RouteDebugger.RewriteRoutesForTesting (RouteTable.Routes); переписать мою таблицу маршрутизации?