BusinessHttpApiClientModule.cs 646 B

123456789101112131415161718192021222324
  1. using Microsoft.Extensions.DependencyInjection;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Text;
  5. using Volo.Abp.Modularity;
  6. namespace Business
  7. {
  8. [DependsOn(
  9. typeof(BusinessApplicationContractsModule)
  10. )]
  11. public class BusinessHttpApiClientModule : AbpModule
  12. {
  13. public const string RemoteServiceName = "Business";
  14. public override void ConfigureServices(ServiceConfigurationContext context)
  15. {
  16. context.Services.AddHttpClientProxies(
  17. typeof(BusinessApplicationContractsModule).Assembly,
  18. RemoteServiceName
  19. );
  20. }
  21. }
  22. }