开发者

Controllers, in different Areas, with the same name. Can Castle Windsor handle this?

开发者 https://www.devze.com 2023-03-24 21:02 出处:网络
Let\'s say I have two controllers with the same name (i.e., HomeController).The first is in the standard Controller directory (~\\Controllers) and the second is in an Area (~\\Area\\AreaName\\Controll

Let's say I have two controllers with the same name (i.e., HomeController). The first is in the standard Controller directory (~\Controllers) and the second is in an Area (~\Area\AreaName\Controllers).

C开发者_StackOverflowan Castle Windsor handle this type of scenario? What steps do I need to complete to get this working?


The fact that they have the same name should make no difference, as they are different types, and container registration is by type.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号