public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
//其他操作
routes
name:
url:
defaults: new { controller =
)
routes
name:
url:
defaults: new { controller =
)
}
}
自定義的ControllerFactory(UnityControllerFactory)在Global
public class MvcApplication : System
{
protected void Application_Start()
{
//其他操作
UnityContainer unityContainer = new UnityContainer()
unityContainer
UnityControllerFactory controllerFactory =
new UnityControllerFactory(unityContainer)
ControllerBuilder
}
}
除此之外
返回目錄
編輯推薦
ASP
Microsoft
Java程序性能優化
Visual C++音頻/視頻技術開發與實戰
[
From:http://tw.wingwit.com/Article/program/net/201311/16069.html