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

            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);

            SetupContainer();
            _bootstrapper = new RuntimeBootstrapper(Container, AssemblyToScanProvider.List);
            _bootstrapper.Start();
        }
Beispiel #2
0
        protected void Application_Start()
        {
            Container = new WindsorContainer();

            // signalR configuration: must appear before everything else
            GlobalHost.DependencyResolver = new CastleWindsorDependencyResolver(Container);
            RouteTable.Routes.MapHubs();

            AreaRegistration.RegisterAllAreas();

            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);

            SetupContainer();
            _bootstrapper = new RuntimeBootstrapper(Container, AssemblyToScanProvider.List);
            _bootstrapper.Start();
        }