Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }