JiShe.IOT.Admin/src/JiShe.ServicePro.HttpApi.Client/ServiceProHttpApiClientModule.cs

34 lines
1.2 KiB
C#
Raw Normal View History

2025-05-27 14:02:24 +08:00
using JiShe.ServicePro.BasicManagement;
using JiShe.ServicePro.CodeManagement;
using JiShe.ServicePro.DataDictionaryManagement;
using JiShe.ServicePro.DynamicMenuManagement;
using JiShe.ServicePro.LanguageManagement;
using JiShe.ServicePro.NotificationManagement;
using JiShe.ServicePro.TemplateManagement;
namespace JiShe.ServicePro
{
[DependsOn(
typeof(ServiceProApplicationContractsModule),
typeof(BasicManagementHttpApiClientModule),
typeof(NotificationManagementHttpApiClientModule),
typeof(DataDictionaryManagementHttpApiClientModule),
typeof(LanguageManagementHttpApiClientModule),
typeof(CodeManagementHttpApiClientModule),
typeof(TemplateManagementHttpApiClientModule),
typeof(DynamicMenuManagementHttpApiClientModule)
)]
public class ServiceProHttpApiClientModule : AbpModule
{
public const string RemoteServiceName = "Default";
public override void ConfigureServices(ServiceConfigurationContext context)
{
context.Services.AddHttpClientProxies(
typeof(ServiceProApplicationContractsModule).Assembly,
RemoteServiceName
);
}
}
}