IoC: Castle Windsor and WebAPI

后端 未结 4 1142
甜味超标
甜味超标 2020-12-05 10:46

I have an MVC4 site using Castle Windsor that I want to add some WebAPI calls to, so I start digging around a little bit on the interwebs.

Now I don\'t know the ins

4条回答
  •  一向
    一向 (楼主)
    2020-12-05 11:29

    The following sample project gave me the answer I was looking for. It uses Castle Windsor for dependency injection. I was able to use MVC Controllers alongside Web API controllers on the same Application.

    mirajavora / WebAPISample


    Here's the post detailing it:

    Getting Started with ASP.NET Web API

提交回复
热议问题