40 lines
1.4 KiB
C#
40 lines
1.4 KiB
C#
using JiShe.ServicePro.BasicManagement;
|
|
using JiShe.ServicePro.CTWingManagement;
|
|
using JiShe.ServicePro.DataDictionaryManagement;
|
|
using JiShe.ServicePro.DeviceManagement;
|
|
using JiShe.ServicePro.DynamicMenuManagement;
|
|
using JiShe.ServicePro.FileManagement;
|
|
using JiShe.ServicePro.IoTDBManagement;
|
|
using JiShe.ServicePro.LanguageManagement;
|
|
using JiShe.ServicePro.NotificationManagement;
|
|
using JiShe.ServicePro.TemplateManagement;
|
|
|
|
namespace JiShe.IoT
|
|
{
|
|
[DependsOn(
|
|
typeof(IoTApplicationContractsModule),
|
|
typeof(BasicManagementHttpApiClientModule),
|
|
typeof(NotificationManagementHttpApiClientModule),
|
|
typeof(DataDictionaryManagementHttpApiClientModule),
|
|
typeof(LanguageManagementHttpApiClientModule),
|
|
typeof(TemplateManagementHttpApiClientModule),
|
|
typeof(FileManagementHttpApiClientModule),
|
|
typeof(IoTDBManagementHttpApiClientModule),
|
|
typeof(DynamicMenuManagementHttpApiClientModule),
|
|
typeof(CTWingManagementHttpApiClientModule),
|
|
typeof(DeviceManagementHttpApiClientModule)
|
|
)]
|
|
public class IoTHttpApiClientModule : AbpModule
|
|
{
|
|
public const string RemoteServiceName = "Default";
|
|
|
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
|
{
|
|
context.Services.AddHttpClientProxies(
|
|
typeof(IoTApplicationContractsModule).Assembly,
|
|
RemoteServiceName
|
|
);
|
|
}
|
|
}
|
|
}
|