Ninject.MVC3 Bootstrapper's Kernel property is marked as Obsolete. How can I get access to the kernel?

后端 未结 4 1839
借酒劲吻你
借酒劲吻你 2021-01-12 01:35

I updated Ninject.MVC3 package from 2.2.1.0 to 2.2.2.0. Before I had access to the Kernel object through BootStrapper.Kernel property but in the new version Kernel property

4条回答
  •  北海茫月
    2021-01-12 02:01

    In ASP.NET MVC 3, I think DepedencyResolver is a clean way to get a service locator.

提交回复
热议问题