Phil Haack がブログ エントリで説明しているように、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); を正確にどこに投入できますか? ルーティング テーブルを書き換えるには?