コード例 #1
0
ファイル: Global.asax.cs プロジェクト: dagilleland/SimpleCQRS
        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();
        }
コード例 #2
0
ファイル: Global.asax.cs プロジェクト: AGiorgetti/SimpleCQRS
        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();
        }