You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
using Microsoft.Extensions.DependencyInjection.Extensions;using Microsoft.Extensions.DependencyInjection;using Volo.Abp.Account;using Volo.Abp.AutoMapper;using Volo.Abp.FeatureManagement;using Volo.Abp.Identity;using Volo.Abp.Modularity;using Volo.Abp.PermissionManagement;using Volo.Abp.SettingManagement;using Volo.Abp.TenantManagement;using System.Linq;using Shentun.Peis.MyUser;using Shentun.Peis.PermissionManagements;using Shentun.Peis.OrganizationUnits;using Volo.Abp.Http.Client.IdentityModel;
namespace Shentun.Peis;
[DependsOn( typeof(PeisDomainModule), typeof(AbpAccountApplicationModule), typeof(PeisApplicationContractsModule), typeof(AbpIdentityApplicationModule), typeof(AbpPermissionManagementApplicationModule), typeof(AbpTenantManagementApplicationModule), typeof(AbpFeatureManagementApplicationModule), typeof(AbpSettingManagementApplicationModule), typeof(AbpHttpClientIdentityModelModule) )]public class PeisApplicationModule : AbpModule{ public override void ConfigureServices(ServiceConfigurationContext context) {
Configure<AbpAutoMapperOptions>(options => { options.AddMaps<PeisApplicationModule>(); });
//重写
//context.Services.AddTransient<IMyUser, MyUserAppService>();
context.Services.AddTransient<MyUserAppService>(); context.Services.AddTransient<OrganizationUnitsAppService>(); context.Services.AddTransient<PermissionManagementAppService>();
context.Services.AddHttpClient("Peis");
}
//public override void PostConfigureServices(ServiceConfigurationContext context)
//{
// context.Services.Replace(ServiceDescriptor.Transient<OrganizationUnitManager, PeisOrganizationUnitManager>());
//}
}
|