We are launching a webforms project in my company, and I have the HttpModule that I need to resolve the dependencies.
We use the Ninject.Web library to resolve dependencies for main pages, pages, user controls, web services, and HttpHandlers. They all have base classes that you can inherit from the Ninject.Web namespace:
- MasterPageBase
- PageBase
- WebServiceBase
- HttpHandlerBase
- And the custom one that we added since for some odd reason it wasn't there: UserControlBase
However, I cannot find the HttpModuleBase. There is a NinjectHttpModule, but it is not a base class, it is a real module that tries to eliminate the need to inherit base classes in pages and user controls, but it has some errors and we do not use it.
What is the best way to resolve my dependencies in my HttpModule?
When I talk about this with Google, I find this question on the first page -_-
Chev
source share