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(); }
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(); }
private static void HostBeginRequest(HttpApplication application, IOrchardHost host) { application.Context.Items["originalHttpContext"] = application.Context; host.BeginRequest(); }
protected void Application_BeginRequest() { Context.Items["originalHttpContext"] = Context; _host.BeginRequest(); }