first commit
This commit is contained in:
		| @ -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.Admin; | ||||
|  | ||||
| [DependsOn( | ||||
|     typeof(AdminApplicationContractsModule), | ||||
|     typeof(AbpAccountHttpApiClientModule), | ||||
|     typeof(AbpIdentityHttpApiClientModule), | ||||
|     typeof(AbpPermissionManagementHttpApiClientModule), | ||||
|     typeof(AbpTenantManagementHttpApiClientModule), | ||||
|     typeof(AbpFeatureManagementHttpApiClientModule), | ||||
|     typeof(AbpSettingManagementHttpApiClientModule) | ||||
| )] | ||||
| public class AdminHttpApiClientModule : AbpModule | ||||
| { | ||||
|     public const string RemoteServiceName = "Default"; | ||||
|  | ||||
|     public override void ConfigureServices(ServiceConfigurationContext context) | ||||
|     { | ||||
|         context.Services.AddHttpClientProxies( | ||||
|             typeof(AdminApplicationContractsModule).Assembly, | ||||
|             RemoteServiceName | ||||
|         ); | ||||
|  | ||||
|         Configure<AbpVirtualFileSystemOptions>(options => | ||||
|         { | ||||
|             options.FileSets.AddEmbedded<AdminHttpApiClientModule>(); | ||||
|         }); | ||||
|     } | ||||
| } | ||||
| @ -0,0 +1,29 @@ | ||||
| <Project Sdk="Microsoft.NET.Sdk"> | ||||
|  | ||||
|   <Import Project="..\..\common.props" /> | ||||
|  | ||||
|   <PropertyGroup> | ||||
|     <TargetFramework>net8.0</TargetFramework> | ||||
|     <Nullable>enable</Nullable> | ||||
|     <RootNamespace>KonSoft.Admin</RootNamespace> | ||||
|   </PropertyGroup> | ||||
|  | ||||
|   <ItemGroup> | ||||
|     <ProjectReference Include="..\KonSoft.Admin.Application.Contracts\KonSoft.Admin.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> | ||||
		Reference in New Issue
	
	Block a user