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.

38 lines
1.2 KiB

  1. using Microsoft.Extensions.DependencyInjection;
  2. using Volo.Abp.Account;
  3. using Volo.Abp.FeatureManagement;
  4. using Volo.Abp.Identity;
  5. using Volo.Abp.Modularity;
  6. using Volo.Abp.PermissionManagement;
  7. using Volo.Abp.TenantManagement;
  8. using Volo.Abp.SettingManagement;
  9. using Volo.Abp.VirtualFileSystem;
  10. namespace Shentun.Peis;
  11. [DependsOn(
  12. typeof(PeisApplicationContractsModule),
  13. typeof(AbpAccountHttpApiClientModule),
  14. typeof(AbpIdentityHttpApiClientModule),
  15. typeof(AbpPermissionManagementHttpApiClientModule),
  16. typeof(AbpTenantManagementHttpApiClientModule),
  17. typeof(AbpFeatureManagementHttpApiClientModule),
  18. typeof(AbpSettingManagementHttpApiClientModule)
  19. )]
  20. public class PeisHttpApiClientModule : AbpModule
  21. {
  22. public const string RemoteServiceName = "Default";
  23. public override void ConfigureServices(ServiceConfigurationContext context)
  24. {
  25. context.Services.AddHttpClientProxies(
  26. typeof(PeisApplicationContractsModule).Assembly,
  27. RemoteServiceName
  28. );
  29. Configure<AbpVirtualFileSystemOptions>(options =>
  30. {
  31. options.FileSets.AddEmbedded<PeisHttpApiClientModule>();
  32. });
  33. }
  34. }