How to use Ninject with ASP.NET Web API?

前端 未结 4 1303
悲哀的现实
悲哀的现实 2020-12-05 18:36

In MVC I simply make the class NinjectControllerFactory that implements DefaultControllerFactory interface then do some bindings in it. at last in

4条回答
  •  醉话见心
    2020-12-05 19:31

    The current version of Ninject.Web.WebApi, since at least 3.2.1.0, no longer requires anything additional to be added manually. Just add the package and register everything in NinjectWebCommon.cs, as usual.

提交回复
热议问题