Is it possible to add a new object that Ninject should be responsible for (lifetime, injection etc.) in an ASP.NET application after the Application_Started event is fired?
My application needs to dynamically designate objects that should be tracked well after the application is started
If you have access to the
Kernelobject created atApplication_Starteither by a static reference or [preferably] by use of a Common Service Locator, you should be able to callBind<T>()on the object to update the context.I haven’t personally tried this, but it does comply with the class structure.