コード例 #1
0
        public static void Initialize()
        {
            MvcBootstrapper mvcBootstrapper = new MvcBootstrapper(new ConventionalRegistrarConfig());

            //依赖注入初始化
            mvcBootstrapper.Initialize();
            mvcBootstrapper.IocManager.Register <ISignInManager, IdentitySignInManager>(DependencyLifeStyle.Transient);
        }
コード例 #2
0
ファイル: Global.asax.cs プロジェクト: Simon-Lowry/Bookworm
 protected void Application_Start()
 {
     AreaRegistration.RegisterAllAreas();
     FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     BundleConfig.RegisterBundles(BundleTable.Bundles);
     MvcBootstrapper.Init();
 }
コード例 #3
0
 public static void Start()
 {
     AutofacBootstrapper.Configure();
     MvcBootstrapper.Configure();
     AutoMapperBootstrapper.Configure();
 }