开发者

Is it possible to use Ninject without inheriting from NinjectHttpApplication?

开发者 https://www.devze.com 2023-03-15 02:39 出处:网络
I\'d like to Ninject as the IOC container for my WebForms solution to ac开发者_StackOverflow中文版hieve property injection, but the global.asax is already inheriting from another class so I cannot inh

I'd like to Ninject as the IOC container for my WebForms solution to ac开发者_StackOverflow中文版hieve property injection, but the global.asax is already inheriting from another class so I cannot inherit from NinjectHttpApplication as well.

Does any one have any solutions as to how I can achieve this?


The current development version (2.3.0.x) comes with NuGet package using WebActivator that does not require to inherit from HttpApplication. You have to build it yourself though as it is work in progress.

0

精彩评论

暂无评论...
验证码 换一张
取 消