protected void Application_Start() {
            RegisterRoutes(RouteTable.Routes);
            _container = OrchardStarter.CreateHostContainer(MvcSingletons);
            _host = _container.Resolve<IOrchardHost>();

            _host.Initialize();

            // initialize shells to speed up the first dynamic query
            _host.BeginRequest();
            _host.EndRequest();
        }
Esempio n. 2
0
        protected void Application_Start()
        {
            RegisterRoutes(RouteTable.Routes);
            _container = OrchardStarter.CreateHostContainer(MvcSingletons);
            _host      = _container.Resolve <IOrchardHost>();

            _host.Initialize();

            // initialize shells to speed up the first dynamic query
            _host.BeginRequest();
            _host.EndRequest();
        }
Esempio n. 3
0
 private static void HostEndRequest(HttpApplication application, IOrchardHost host)
 {
     host.EndRequest();
 }
Esempio n. 4
0
 private static void HostEndRequest(HttpApplication application, IOrchardHost host) {
     host.EndRequest();
 }
Esempio n. 5
0
 protected void Application_EndRequest()
 {
     _host.EndRequest();
 }