When is the IOC container ready?
-
03-07-2019 - |
Question
When is the IOC container in the life cycle of an ASP.NET application?
When can I start requesting objects from the container?
Solution
Depending on which container you are talking about (Windsor, StructureMap, Ninject, etc) they are generally available immediately after creation.
You typically create the container in the Application_Start event.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow