using Microsoft.Extensions.DependencyInjection; using Company.Project.Shared; using Volo.Abp; using Volo.Abp.Account; using Volo.Abp.Account.Web; using Volo.Abp.AspNetCore.Mvc.UI.BasicTheme; using Volo.Abp.Autofac; using Volo.Abp.EntityFrameworkCore; using Volo.Abp.EntityFrameworkCore.SqlServer; using Volo.Abp.Identity; using Volo.Abp.Identity.EntityFrameworkCore; using Volo.Abp.IdentityServer.EntityFrameworkCore; using Volo.Abp.Modularity; using Volo.Abp.MultiTenancy; using Volo.Abp.TenantManagement.EntityFrameworkCore; namespace Company.Project.AuthServer; [DependsOn( typeof(AbpAutofacModule), typeof(AbpAspNetCoreMvcUiBasicThemeModule), typeof(AbpIdentityEntityFrameworkCoreModule), typeof(AbpIdentityApplicationModule), typeof(AbpIdentityServerEntityFrameworkCoreModule), typeof(AbpAccountWebIdentityServerModule), typeof(AbpTenantManagementEntityFrameworkCoreModule) )] public class AuthServerHostModule : AbpModule { public override void ConfigureServices(ServiceConfigurationContext context) { Configure(options => { options.IsEnabled = ProjectConsts.IsMultiTenancyEnabled; }); Configure(options => options.UseSqlServer()); } public override void OnApplicationInitialization(ApplicationInitializationContext context) { var app = context.GetApplicationBuilder(); app.UseStaticFiles(); app.UseRouting(); app.UseIdentityServer(); app.UseConfiguredEndpoints(); } }