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.
98 lines
3.2 KiB
98 lines
3.2 KiB
using Microsoft.Extensions.DependencyInjection;
|
|
using Volo.Abp.Account;
|
|
using Volo.Abp.AspNetCore.Mvc.Client;
|
|
using Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy;
|
|
using Volo.Abp.AspNetCore.Serilog;
|
|
using Volo.Abp.Autofac;
|
|
using Volo.Abp.AutoMapper;
|
|
using Volo.Abp.Http.Client;
|
|
using Volo.Abp.Http.Client.IdentityModel.Web;
|
|
using Volo.Abp.Identity;
|
|
using Volo.Abp.Modularity;
|
|
using Volo.Abp.SettingManagement.EntityFrameworkCore;
|
|
using Volo.Abp.Swashbuckle;
|
|
using Win_in.Sfs.Auth;
|
|
using Win_in.Sfs.Basedata.Application.Contracts;
|
|
using Win_in.Sfs.FileStorage;
|
|
using Win_in.Sfs.Label.Application.Contracts;
|
|
using Win_in.Sfs.Message.Application.Contracts;
|
|
using Win_in.Sfs.Shared.Host;
|
|
using Win_in.Sfs.Wms.Inventory.Application.Contracts;
|
|
|
|
// using Win_in.Sfs.Wms.Pda.Authenticaitons;
|
|
using Win_in.Sfs.Wms.Store.Application.Contracts;
|
|
|
|
namespace Win_in.Sfs.Wms.Pda;
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
[DependsOn(
|
|
typeof(AbpIdentityHttpApiClientModule),
|
|
typeof(AbpAspNetCoreMvcClientModule),
|
|
typeof(AbpHttpClientIdentityModelWebModule),
|
|
typeof(SharedHostModule),
|
|
typeof(AbpSettingManagementEntityFrameworkCoreModule)
|
|
)]
|
|
[DependsOn(
|
|
typeof(AbpAspNetCoreSerilogModule),
|
|
typeof(AbpAspNetCoreMvcUiMultiTenancyModule),
|
|
typeof(AbpAutofacModule),
|
|
typeof(AbpAspNetCoreSerilogModule),
|
|
typeof(AbpSwashbuckleModule),
|
|
typeof(AbpHttpClientModule),
|
|
typeof(AbpAutoMapperModule)
|
|
)]
|
|
[DependsOn(
|
|
typeof(AbpIdentityApplicationContractsModule),
|
|
typeof(BasedataApplicationContractsModule),
|
|
typeof(InventoryApplicationContractsModule),
|
|
typeof(StoreApplicationContractsModule),
|
|
typeof(LabelApplicationContractsModule),
|
|
typeof(MessageApplicationContractsModule),
|
|
typeof(AuthApplicationContractsModule)
|
|
)]
|
|
public class PdaHttpApiHostModule : ModuleBase<PdaHttpApiHostModule>
|
|
{
|
|
/// <inheritdoc/>
|
|
protected override void ConfigureHttpClientProxies()
|
|
{
|
|
var context = this.ServiceConfigurationContext;
|
|
context.Services.AddHttpClientProxies(
|
|
typeof(AuthApplicationContractsModule).Assembly,
|
|
"Auth"
|
|
);
|
|
context.Services.AddHttpClientProxies(
|
|
typeof(AbpAccountApplicationContractsModule).Assembly,
|
|
"Auth"
|
|
);
|
|
context.Services.AddHttpClientProxies(
|
|
typeof(MessageApplicationContractsModule).Assembly,
|
|
"Message"
|
|
);
|
|
context.Services.AddHttpClientProxies(
|
|
typeof(BasedataApplicationContractsModule).Assembly,
|
|
"BaseData"
|
|
);
|
|
context.Services.AddHttpClientProxies(
|
|
typeof(InventoryApplicationContractsModule).Assembly,
|
|
"Inventory"
|
|
);
|
|
context.Services.AddHttpClientProxies(
|
|
typeof(StoreApplicationContractsModule).Assembly,
|
|
"Store"
|
|
);
|
|
context.Services.AddHttpClientProxies(
|
|
typeof(LabelApplicationContractsModule).Assembly,
|
|
"Label"
|
|
);
|
|
context.Services.AddHttpClientProxies(
|
|
typeof(AbpIdentityApplicationContractsModule).Assembly,
|
|
"Default"
|
|
);
|
|
context.Services.AddHttpClientProxies(
|
|
typeof(FileStorageApplicationContractsModule).Assembly,
|
|
"FileStorage"
|
|
);
|
|
}
|
|
}
|
|
|