In WebApi 0.5.0, I would just define a new WebApiConfiguration, and register the CreateInstance method - this appears to have gone away in WebApi 4 (the current version that comes with ASP.net MVC 4).

How do I integrate Castle Windsor (or any other IoC container) with this new version of the framework?

Thanks

有帮助吗?

解决方案

Everything you need can be found by starting from here.

If you follow the links in the post you will find all the information you need, including everything you need to register the components in the container.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top