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; using Shentun.Peis.PlugIns; using Volo.Abp.Modularity.PlugIns; 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(options => { options.AddMaps(); }); //重写 //context.Services.AddTransient(); context.Services.AddTransient(); context.Services.AddTransient(); context.Services.AddTransient(); context.Services.AddHttpClient("Peis"); //context.Services.AddApplication(options => //{ // options.PlugInSources.AddFolder(@"E:\Whitedolphins\NextPeis\src\Shentun.ColumnReferencePlugIns\bin\Debug\net6.0"); //}); } //public override void PostConfigureServices(ServiceConfigurationContext context) //{ // context.Services.Replace(ServiceDescriptor.Transient()); //} }