Exemple #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);
        }
Exemple #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);
        }