Ninject with ASP.Net webforms and MVC

后端 未结 3 572
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-09 08:28

I want to use Ninject in a project which combines ASP.Net webforms and ASP.Net MVC. I\'m using Ninject 2, but when I use NinjectHttpApplication from Ninject.Web.Mvc it complains

3条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-09 09:15

    here are some very good resources on how to leverage DI in webforms that I had bookmarked some time ago:

    http://aspnetresources.com/articles/ioc_and_di_with_web_forms http://aspnetresources.com/articles/real_world_ioc_and_di_with_webforms

    Hope this helps.

提交回复
热议问题