This project is read-only.

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?




Jun 19, 2012 at 6:06 PM

MVC instantiates them. They are registered using Autofac.