Пример #1
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();
        }
Пример #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();
        }
Пример #3
0
 private static void HostBeginRequest(HttpApplication application, IOrchardHost host)
 {
     application.Context.Items["originalHttpContext"] = application.Context;
     host.BeginRequest();
 }
Пример #4
0
 private static void HostBeginRequest(HttpApplication application, IOrchardHost host) {
     application.Context.Items["originalHttpContext"] = application.Context;
     host.BeginRequest();
 }
Пример #5
0
 protected void Application_BeginRequest()
 {
     Context.Items["originalHttpContext"] = Context;
     _host.BeginRequest();
 }