public static void Initialize()
{
MvcBootstrapper mvcBootstrapper = new MvcBootstrapper(new ConventionalRegistrarConfig());
ApiBootstrapper apiBootstrapper = new ApiBootstrapper(mvcBootstrapper.IocManager);
apiBootstrapper.Initialize();
//依赖注入初始化
mvcBootstrapper.Initialize();
apiBootstrapper.Initialize();
mvcBootstrapper.IocManager.Register<ISignInManager, IdentitySignInManager>(DependencyLifeStyle.Transient);
}