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.

28 lines
832 B

using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.Http.Client;
using Volo.Abp.Http.Client.IdentityModel;
using Volo.Abp.Http.Client.IdentityModel.Web;
using Volo.Abp.Modularity;
namespace BaseService.HttpApi.Client
{
[DependsOn(
typeof(BaseServiceApplicationContractsModule),
typeof(AbpHttpClientIdentityModelModule),
typeof(AbpHttpClientIdentityModelWebModule)
)]
public class BaseServiceHttpApiClientModule : AbpModule
{
public const string RemoteServiceName = "BaseService";
public override void ConfigureServices(ServiceConfigurationContext context)
{
context.Services.AddHttpClientProxies(
typeof(BaseServiceApplicationContractsModule).Assembly,
RemoteServiceName
);
}
}
}