using BaseService.Localization; using Localization.Resources.AbpUi; using Microsoft.Extensions.DependencyInjection; using Volo.Abp.Account; using Volo.Abp.Identity; using Volo.Abp.Localization; using Volo.Abp.Modularity; using Volo.Abp.PermissionManagement.HttpApi; using Volo.Abp.TenantManagement; namespace BaseService { [DependsOn( typeof(BaseServiceApplicationContractsModule), typeof(AbpAccountHttpApiModule), typeof(AbpPermissionManagementHttpApiModule), typeof(AbpTenantManagementHttpApiModule), typeof(AbpIdentityHttpApiModule) )] public class BaseServiceHttpApiModule : AbpModule { public override void PreConfigureServices(ServiceConfigurationContext context) { PreConfigure(mvcBuilder => { mvcBuilder.AddApplicationPartIfNotExists(typeof(BaseServiceHttpApiModule).Assembly); }); } public override void ConfigureServices(ServiceConfigurationContext context) { ConfigureLocalization(); } private void ConfigureLocalization() { Configure(options => { options.Resources .Get() .AddBaseTypes( typeof(AbpUiResource) ); }); } } }