Esempio n. 1
0
 protected void Application_Start()
 {
     AppID = Guid.NewGuid().ToString();
     AreaRegistration.RegisterAllAreas();
     WebApiConfig.Register(GlobalConfiguration.Configuration);
     FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     BundleConfig.RegisterBundles(BundleTable.Bundles);
     OctGlobal.InitIOC(); //Bootstrapper.Initialise();
     CreateMapper();
     CreateSreachIndex();
 }
Esempio n. 2
0
        protected void Application_Start()
        {
            var config = new HubConfiguration();

            config.EnableCrossDomain = true;
            RouteTable.Routes.MapHubs(config);
            AreaRegistration.RegisterAllAreas();

            WebApiConfig.Register(GlobalConfiguration.Configuration);
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
            OctGlobal.InitIOC(); //Bootstrapper.Initialise();
        }