where/how is controller instantiated ?

Topics: Administration, Core, Customizing Orchard, General, Troubleshooting, Writing modules, Writing themes
Jun 19, 2012 at 10:30 AM

Where are instances of controllers made? What instantiates controllers?

If I place a breakpoint on

    
object IDependencyResolver.GetService(Type serviceType)

in the DefaultOrchardHostContainer class, it gets never hit.

Can anybody shed light on this?

 

 

 

Coordinator
Jun 19, 2012 at 6:06 PM

MVC instantiates them. They are registered using Autofac.