示例#1
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();

            //WebApiConfig.Register(GlobalConfiguration.Configuration);
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
            FluentMetadataConfiguration.Register();
            _starter = new Starter<IZingHost>(HostInitialization, HostBeginRequest, HostEndRequest);
            _starter.OnApplicationStart(this);
        }
示例#2
0
 protected void Application_Start(object sender, EventArgs e)
 {
     RegisterRoutes(RouteTable.Routes);
     _starter = new Starter<IWebHost>(HostInitialization, HostBeginRequest, HostEndRequest);
     _starter.OnApplicationStart(this);
 }
示例#3
0
 protected void Application_Start() {
     RegisterRoutes(RouteTable.Routes);
     _starter = new Starter<IOrchardHost>(HostInitialization, HostBeginRequest, HostEndRequest);
     _starter.OnApplicationStart(this);
 }