Inheritance: System.Web.Mvc.DefaultControllerFactory
        public static void DefineControllerFactory()
        {
			var domainAssembly = ApplicationManager.ApplicationConfiguration.DomainAssembly;
			var container = ApplicationManager.Container;
            var controllerFactory = new GenericControllerFactory(domainAssembly, container);
            ControllerBuilder.Current.SetControllerFactory(controllerFactory);
        }
        public static void DefineControllerFactory()
        {
			var domainAssembly = ApplicationManager.ApplicationConfiguration.DomainAssembly;
			var container = ApplicationManager.Container;
            var controllerFactory = new GenericControllerFactory(domainAssembly, container);
            ControllerBuilder.Current.SetControllerFactory(controllerFactory);

            /*ApplicationManager.Container.RegisterDelayedInstance<ISession>(() => {
                if (!HttpContext.Current.Items.Contains(NHIBERNATE_SESSION))
                {
                    var session = ApplicationManager.SessionFactory.OpenSession();
                    HttpContext.Current.Items.Add(NHIBERNATE_SESSION, session);
                }
                return (ISession)HttpContext.Current.Items[NHIBERNATE_SESSION];
            });*/
        }