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

            var bootstrapper = new SamuraiBootstrapper();
            var container = bootstrapper.CreateContainer();
            
            DependencyResolver.SetResolver(new AutofacDependencyResolver(container));

            SamuraiBootstrapper.DoMigrations();

            RegisterGlobalFilters(GlobalFilters.Filters);
            RegisterRoutes(RouteTable.Routes);
        }
示例#2
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();

            var bootstrapper = new SamuraiBootstrapper();
            var container    = bootstrapper.CreateContainer();

            DependencyResolver.SetResolver(new AutofacDependencyResolver(container));

            SamuraiBootstrapper.DoMigrations();

            RegisterGlobalFilters(GlobalFilters.Filters);
            RegisterRoutes(RouteTable.Routes);
        }