HttpControllerFactory was deleted in ASP.NET MVC 4 RC. Actually, it was replaced by two interfaces: IHtttpControllerActivator and IHttpControllerSelector.
Unfortunately DefaultHttpControllerSelector still doesn't support Areas by default. To support it you have to write your HttpControllerSelector from scratch. To be honest, I will derive my selector from DefaultHttpControllerSelector.
In this post I will show you how you can do it.
本文介绍如何在ASP.NET MVC4 Web API中使用自定义控制器选择器来支持区域功能,通过实现AreaHttpControllerSelector类并注册到应用程序中,实现了API控制器在不同区域下的灵活调用。
2438

被折叠的 条评论
为什么被折叠?



