first commit
This commit is contained in:
@ -0,0 +1,29 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<Import Project="..\..\common.props" />
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<RootNamespace>KonSoft.TenantManagement</RootNamespace>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\KonSoft.TenantManagement.Application.Contracts\KonSoft.TenantManagement.Application.Contracts.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Volo.Abp.Account.HttpApi.Client" Version="8.3.4" />
|
||||
<PackageReference Include="Volo.Abp.Identity.HttpApi.Client" Version="8.3.4" />
|
||||
<PackageReference Include="Volo.Abp.PermissionManagement.HttpApi.Client" Version="8.3.4" />
|
||||
<PackageReference Include="Volo.Abp.TenantManagement.HttpApi.Client" Version="8.3.4" />
|
||||
<PackageReference Include="Volo.Abp.FeatureManagement.HttpApi.Client" Version="8.3.4" />
|
||||
<PackageReference Include="Volo.Abp.SettingManagement.HttpApi.Client" Version="8.3.4" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="**\*generate-proxy.json" />
|
||||
<Content Remove="**\*generate-proxy.json" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
@ -0,0 +1,38 @@
|
||||
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 KonSoft.TenantManagement;
|
||||
|
||||
[DependsOn(
|
||||
typeof(TenantManagementApplicationContractsModule),
|
||||
typeof(AbpAccountHttpApiClientModule),
|
||||
typeof(AbpIdentityHttpApiClientModule),
|
||||
typeof(AbpPermissionManagementHttpApiClientModule),
|
||||
typeof(AbpTenantManagementHttpApiClientModule),
|
||||
typeof(AbpFeatureManagementHttpApiClientModule),
|
||||
typeof(AbpSettingManagementHttpApiClientModule)
|
||||
)]
|
||||
public class TenantManagementHttpApiClientModule : AbpModule
|
||||
{
|
||||
public const string RemoteServiceName = "Default";
|
||||
|
||||
public override void ConfigureServices(ServiceConfigurationContext context)
|
||||
{
|
||||
context.Services.AddHttpClientProxies(
|
||||
typeof(TenantManagementApplicationContractsModule).Assembly,
|
||||
RemoteServiceName
|
||||
);
|
||||
|
||||
Configure<AbpVirtualFileSystemOptions>(options =>
|
||||
{
|
||||
options.FileSets.AddEmbedded<TenantManagementHttpApiClientModule>();
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user