Question

When is the IOC container in the life cycle of an ASP.NET application?

When can I start requesting objects from the container?

Was it helpful?

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
scroll top