MVC WebApi not using AutofacWebApiDependencyResolver

后端 未结 2 847
北荒
北荒 2021-02-14 09:40

I have a mixed MVC 4 app, where some controllers are regular implementations of Controller and some controllers are implementations of ApiController.

2条回答
  •  臣服心动
    2021-02-14 10:33

    Probably this blog can help you: http://blogs.msdn.com/b/roncain/archive/2012/07/16/dependency-injection-with-asp-net-web-api-and-autofac.aspx

提交回复
热议问题