Exemplo n.º 1
0
        public static void Initialize()
        {
            MvcBootstrapper mvcBootstrapper = new MvcBootstrapper(new ConventionalRegistrarConfig());

            //依赖注入初始化
            mvcBootstrapper.Initialize();
            mvcBootstrapper.IocManager.Register <ISignInManager, IdentitySignInManager>(DependencyLifeStyle.Transient);
        }
Exemplo n.º 2
0
 protected void Application_Start()
 {
     AreaRegistration.RegisterAllAreas();
     FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     BundleConfig.RegisterBundles(BundleTable.Bundles);
     MvcBootstrapper.Init();
 }
Exemplo n.º 3
0
 public static void Start()
 {
     AutofacBootstrapper.Configure();
     MvcBootstrapper.Configure();
     AutoMapperBootstrapper.Configure();
 }