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.
39 lines
1.2 KiB
39 lines
1.2 KiB
10 months ago
|
using Microsoft.Extensions.DependencyInjection;
|
||
|
using Volo.Abp.Account;
|
||
|
using Volo.Abp.FeatureManagement;
|
||
|
using Volo.Abp.Identity;
|
||
|
using Volo.Abp.Modularity;
|
||
|
using Volo.Abp.PermissionManagement;
|
||
|
using Volo.Abp.TenantManagement;
|
||
|
using Volo.Abp.SettingManagement;
|
||
|
using Volo.Abp.VirtualFileSystem;
|
||
|
|
||
|
namespace WinIn.FasterZ.AuthSiteCenter;
|
||
|
|
||
|
[DependsOn(
|
||
|
typeof(AuthSiteCenterApplicationContractsModule),
|
||
|
typeof(AbpAccountHttpApiClientModule),
|
||
|
typeof(AbpIdentityHttpApiClientModule),
|
||
|
typeof(AbpPermissionManagementHttpApiClientModule),
|
||
|
typeof(AbpTenantManagementHttpApiClientModule),
|
||
|
typeof(AbpFeatureManagementHttpApiClientModule),
|
||
|
typeof(AbpSettingManagementHttpApiClientModule)
|
||
|
)]
|
||
|
public class AuthSiteCenterHttpApiClientModule : AbpModule
|
||
|
{
|
||
|
public const string RemoteServiceName = "Default";
|
||
|
|
||
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
||
|
{
|
||
|
context.Services.AddHttpClientProxies(
|
||
|
typeof(AuthSiteCenterApplicationContractsModule).Assembly,
|
||
|
RemoteServiceName
|
||
|
);
|
||
|
|
||
|
Configure<AbpVirtualFileSystemOptions>(options =>
|
||
|
{
|
||
|
options.FileSets.AddEmbedded<AuthSiteCenterHttpApiClientModule>();
|
||
|
});
|
||
|
}
|
||
|
}
|