Browse Source

feat(account): 增加接口代理

pull/1125/head
colin 2 years ago
parent
commit
2854411ea5
  1. 83
      aspnet-core/modules/account/LINGYUN.Abp.Account.HttpApi.Client/ClientProxies/LINGYUN/Abp/Account/AccountClientProxy.Generated.cs
  2. 7
      aspnet-core/modules/account/LINGYUN.Abp.Account.HttpApi.Client/ClientProxies/LINGYUN/Abp/Account/AccountClientProxy.cs
  3. 43
      aspnet-core/modules/account/LINGYUN.Abp.Account.HttpApi.Client/ClientProxies/LINGYUN/Abp/Account/MyClaimClientProxy.Generated.cs
  4. 7
      aspnet-core/modules/account/LINGYUN.Abp.Account.HttpApi.Client/ClientProxies/LINGYUN/Abp/Account/MyClaimClientProxy.cs
  5. 99
      aspnet-core/modules/account/LINGYUN.Abp.Account.HttpApi.Client/ClientProxies/LINGYUN/Abp/Account/MyProfileClientProxy.Generated.cs
  6. 7
      aspnet-core/modules/account/LINGYUN.Abp.Account.HttpApi.Client/ClientProxies/LINGYUN/Abp/Account/MyProfileClientProxy.cs
  7. 43
      aspnet-core/modules/account/LINGYUN.Abp.Account.HttpApi.Client/ClientProxies/LINGYUN/Abp/Account/MySecurityLogClientProxy.Generated.cs
  8. 7
      aspnet-core/modules/account/LINGYUN.Abp.Account.HttpApi.Client/ClientProxies/LINGYUN/Abp/Account/MySecurityLogClientProxy.cs
  9. 52
      aspnet-core/modules/account/LINGYUN.Abp.Account.HttpApi.Client/ClientProxies/Volo/Abp/Account/AccountClientProxy.Generated.cs
  10. 7
      aspnet-core/modules/account/LINGYUN.Abp.Account.HttpApi.Client/ClientProxies/Volo/Abp/Account/AccountClientProxy.cs
  11. 24
      aspnet-core/modules/account/LINGYUN.Abp.Account.HttpApi.Client/ClientProxies/Volo/Abp/Account/DynamicClaimsClientProxy.Generated.cs
  12. 7
      aspnet-core/modules/account/LINGYUN.Abp.Account.HttpApi.Client/ClientProxies/Volo/Abp/Account/DynamicClaimsClientProxy.cs
  13. 40
      aspnet-core/modules/account/LINGYUN.Abp.Account.HttpApi.Client/ClientProxies/Volo/Abp/Account/ProfileClientProxy.Generated.cs
  14. 7
      aspnet-core/modules/account/LINGYUN.Abp.Account.HttpApi.Client/ClientProxies/Volo/Abp/Account/ProfileClientProxy.cs
  15. 1883
      aspnet-core/modules/account/LINGYUN.Abp.Account.HttpApi.Client/ClientProxies/account-generate-proxy.json
  16. 3
      aspnet-core/modules/account/LINGYUN.Abp.Account.HttpApi.Client/FodyWeavers.xml
  17. 30
      aspnet-core/modules/account/LINGYUN.Abp.Account.HttpApi.Client/FodyWeavers.xsd
  18. 32
      aspnet-core/modules/account/LINGYUN.Abp.Account.HttpApi.Client/LINGYUN.Abp.Account.HttpApi.Client.csproj
  19. 25
      aspnet-core/modules/account/LINGYUN.Abp.Account.HttpApi.Client/LINGYUN/Abp/Account/AbpAccountHttpApiClientModule.cs

83
aspnet-core/modules/account/LINGYUN.Abp.Account.HttpApi.Client/ClientProxies/LINGYUN/Abp/Account/AccountClientProxy.Generated.cs

@ -0,0 +1,83 @@
// This file is automatically generated by ABP framework to use MVC Controllers from CSharp
using LINGYUN.Abp.Account;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Volo.Abp;
using Volo.Abp.Application.Dtos;
using Volo.Abp.DependencyInjection;
using Volo.Abp.Http.Client;
using Volo.Abp.Http.Client.ClientProxying;
using Volo.Abp.Http.Modeling;
// ReSharper disable once CheckNamespace
namespace LINGYUN.Abp.Account;
[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(IAccountAppService), typeof(AccountClientProxy))]
public partial class AccountClientProxy : ClientProxyBase<IAccountAppService>, IAccountAppService
{
public virtual async Task RegisterAsync(WeChatRegisterDto input)
{
await RequestAsync(nameof(RegisterAsync), new ClientProxyRequestTypeValue
{
{ typeof(WeChatRegisterDto), input }
});
}
public virtual async Task RegisterAsync(PhoneRegisterDto input)
{
await RequestAsync(nameof(RegisterAsync), new ClientProxyRequestTypeValue
{
{ typeof(PhoneRegisterDto), input }
});
}
public virtual async Task ResetPasswordAsync(PhoneResetPasswordDto input)
{
await RequestAsync(nameof(ResetPasswordAsync), new ClientProxyRequestTypeValue
{
{ typeof(PhoneResetPasswordDto), input }
});
}
public virtual async Task SendPhoneSigninCodeAsync(SendPhoneSigninCodeDto input)
{
await RequestAsync(nameof(SendPhoneSigninCodeAsync), new ClientProxyRequestTypeValue
{
{ typeof(SendPhoneSigninCodeDto), input }
});
}
public virtual async Task SendEmailSigninCodeAsync(SendEmailSigninCodeDto input)
{
await RequestAsync(nameof(SendEmailSigninCodeAsync), new ClientProxyRequestTypeValue
{
{ typeof(SendEmailSigninCodeDto), input }
});
}
public virtual async Task SendPhoneRegisterCodeAsync(SendPhoneRegisterCodeDto input)
{
await RequestAsync(nameof(SendPhoneRegisterCodeAsync), new ClientProxyRequestTypeValue
{
{ typeof(SendPhoneRegisterCodeDto), input }
});
}
public virtual async Task SendPhoneResetPasswordCodeAsync(SendPhoneResetPasswordCodeDto input)
{
await RequestAsync(nameof(SendPhoneResetPasswordCodeAsync), new ClientProxyRequestTypeValue
{
{ typeof(SendPhoneResetPasswordCodeDto), input }
});
}
public virtual async Task<ListResultDto<NameValue>> GetTwoFactorProvidersAsync(GetTwoFactorProvidersInput input)
{
return await RequestAsync<ListResultDto<NameValue>>(nameof(GetTwoFactorProvidersAsync), new ClientProxyRequestTypeValue
{
{ typeof(GetTwoFactorProvidersInput), input }
});
}
}

7
aspnet-core/modules/account/LINGYUN.Abp.Account.HttpApi.Client/ClientProxies/LINGYUN/Abp/Account/AccountClientProxy.cs

@ -0,0 +1,7 @@
// This file is part of AccountClientProxy, you can customize it here
// ReSharper disable once CheckNamespace
namespace LINGYUN.Abp.Account;
public partial class AccountClientProxy
{
}

43
aspnet-core/modules/account/LINGYUN.Abp.Account.HttpApi.Client/ClientProxies/LINGYUN/Abp/Account/MyClaimClientProxy.Generated.cs

@ -0,0 +1,43 @@
// This file is automatically generated by ABP framework to use MVC Controllers from CSharp
using LINGYUN.Abp.Account;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Volo.Abp;
using Volo.Abp.Application.Dtos;
using Volo.Abp.DependencyInjection;
using Volo.Abp.Http.Client;
using Volo.Abp.Http.Client.ClientProxying;
using Volo.Abp.Http.Modeling;
// ReSharper disable once CheckNamespace
namespace LINGYUN.Abp.Account;
[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(IMyClaimAppService), typeof(MyClaimClientProxy))]
public partial class MyClaimClientProxy : ClientProxyBase<IMyClaimAppService>, IMyClaimAppService
{
public virtual async Task ChangeAvatarAsync(ChangeAvatarInput input)
{
await RequestAsync(nameof(ChangeAvatarAsync), new ClientProxyRequestTypeValue
{
{ typeof(ChangeAvatarInput), input }
});
}
public virtual async Task<GetUserClaimStateDto> GetStateAsync(string claimType)
{
return await RequestAsync<GetUserClaimStateDto>(nameof(GetStateAsync), new ClientProxyRequestTypeValue
{
{ typeof(string), claimType }
});
}
public virtual async Task ResetAsync(string claimType)
{
await RequestAsync(nameof(ResetAsync), new ClientProxyRequestTypeValue
{
{ typeof(string), claimType }
});
}
}

7
aspnet-core/modules/account/LINGYUN.Abp.Account.HttpApi.Client/ClientProxies/LINGYUN/Abp/Account/MyClaimClientProxy.cs

@ -0,0 +1,7 @@
// This file is part of MyClaimClientProxy, you can customize it here
// ReSharper disable once CheckNamespace
namespace LINGYUN.Abp.Account;
public partial class MyClaimClientProxy
{
}

99
aspnet-core/modules/account/LINGYUN.Abp.Account.HttpApi.Client/ClientProxies/LINGYUN/Abp/Account/MyProfileClientProxy.Generated.cs

@ -0,0 +1,99 @@
// This file is automatically generated by ABP framework to use MVC Controllers from CSharp
using LINGYUN.Abp.Account;
using LINGYUN.Abp.Identity;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Volo.Abp;
using Volo.Abp.Application.Dtos;
using Volo.Abp.DependencyInjection;
using Volo.Abp.Http.Client;
using Volo.Abp.Http.Client.ClientProxying;
using Volo.Abp.Http.Modeling;
// ReSharper disable once CheckNamespace
namespace LINGYUN.Abp.Account;
[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(IMyProfileAppService), typeof(MyProfileClientProxy))]
public partial class MyProfileClientProxy : ClientProxyBase<IMyProfileAppService>, IMyProfileAppService
{
public virtual async Task<PagedResultDto<IdentitySessionDto>> GetSessionsAsync(GetMySessionsInput input)
{
return await RequestAsync<PagedResultDto<IdentitySessionDto>>(nameof(GetSessionsAsync), new ClientProxyRequestTypeValue
{
{ typeof(GetMySessionsInput), input }
});
}
public virtual async Task RevokeSessionAsync(string sessionId)
{
await RequestAsync(nameof(RevokeSessionAsync), new ClientProxyRequestTypeValue
{
{ typeof(string), sessionId }
});
}
public virtual async Task<TwoFactorEnabledDto> GetTwoFactorEnabledAsync()
{
return await RequestAsync<TwoFactorEnabledDto>(nameof(GetTwoFactorEnabledAsync));
}
public virtual async Task ChangeTwoFactorEnabledAsync(TwoFactorEnabledDto input)
{
await RequestAsync(nameof(ChangeTwoFactorEnabledAsync), new ClientProxyRequestTypeValue
{
{ typeof(TwoFactorEnabledDto), input }
});
}
public virtual async Task SendChangePhoneNumberCodeAsync(SendChangePhoneNumberCodeInput input)
{
await RequestAsync(nameof(SendChangePhoneNumberCodeAsync), new ClientProxyRequestTypeValue
{
{ typeof(SendChangePhoneNumberCodeInput), input }
});
}
public virtual async Task ChangePhoneNumberAsync(ChangePhoneNumberInput input)
{
await RequestAsync(nameof(ChangePhoneNumberAsync), new ClientProxyRequestTypeValue
{
{ typeof(ChangePhoneNumberInput), input }
});
}
public virtual async Task SendEmailConfirmLinkAsync(SendEmailConfirmCodeDto input)
{
await RequestAsync(nameof(SendEmailConfirmLinkAsync), new ClientProxyRequestTypeValue
{
{ typeof(SendEmailConfirmCodeDto), input }
});
}
public virtual async Task ConfirmEmailAsync(ConfirmEmailInput input)
{
await RequestAsync(nameof(ConfirmEmailAsync), new ClientProxyRequestTypeValue
{
{ typeof(ConfirmEmailInput), input }
});
}
public virtual async Task<AuthenticatorDto> GetAuthenticatorAsync()
{
return await RequestAsync<AuthenticatorDto>(nameof(GetAuthenticatorAsync));
}
public virtual async Task<AuthenticatorRecoveryCodeDto> VerifyAuthenticatorCodeAsync(VerifyAuthenticatorCodeInput input)
{
return await RequestAsync<AuthenticatorRecoveryCodeDto>(nameof(VerifyAuthenticatorCodeAsync), new ClientProxyRequestTypeValue
{
{ typeof(VerifyAuthenticatorCodeInput), input }
});
}
public virtual async Task ResetAuthenticatorAsync()
{
await RequestAsync(nameof(ResetAuthenticatorAsync));
}
}

7
aspnet-core/modules/account/LINGYUN.Abp.Account.HttpApi.Client/ClientProxies/LINGYUN/Abp/Account/MyProfileClientProxy.cs

@ -0,0 +1,7 @@
// This file is part of MyProfileClientProxy, you can customize it here
// ReSharper disable once CheckNamespace
namespace LINGYUN.Abp.Account;
public partial class MyProfileClientProxy
{
}

43
aspnet-core/modules/account/LINGYUN.Abp.Account.HttpApi.Client/ClientProxies/LINGYUN/Abp/Account/MySecurityLogClientProxy.Generated.cs

@ -0,0 +1,43 @@
// This file is automatically generated by ABP framework to use MVC Controllers from CSharp
using LINGYUN.Abp.Account;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Volo.Abp;
using Volo.Abp.Application.Dtos;
using Volo.Abp.DependencyInjection;
using Volo.Abp.Http.Client;
using Volo.Abp.Http.Client.ClientProxying;
using Volo.Abp.Http.Modeling;
// ReSharper disable once CheckNamespace
namespace LINGYUN.Abp.Account;
[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(IMySecurityLogAppService), typeof(MySecurityLogClientProxy))]
public partial class MySecurityLogClientProxy : ClientProxyBase<IMySecurityLogAppService>, IMySecurityLogAppService
{
public virtual async Task DeleteAsync(Guid id)
{
await RequestAsync(nameof(DeleteAsync), new ClientProxyRequestTypeValue
{
{ typeof(Guid), id }
});
}
public virtual async Task<SecurityLogDto> GetAsync(Guid id)
{
return await RequestAsync<SecurityLogDto>(nameof(GetAsync), new ClientProxyRequestTypeValue
{
{ typeof(Guid), id }
});
}
public virtual async Task<PagedResultDto<SecurityLogDto>> GetListAsync(SecurityLogGetListInput input)
{
return await RequestAsync<PagedResultDto<SecurityLogDto>>(nameof(GetListAsync), new ClientProxyRequestTypeValue
{
{ typeof(SecurityLogGetListInput), input }
});
}
}

7
aspnet-core/modules/account/LINGYUN.Abp.Account.HttpApi.Client/ClientProxies/LINGYUN/Abp/Account/MySecurityLogClientProxy.cs

@ -0,0 +1,7 @@
// This file is part of MySecurityLogClientProxy, you can customize it here
// ReSharper disable once CheckNamespace
namespace LINGYUN.Abp.Account;
public partial class MySecurityLogClientProxy
{
}

52
aspnet-core/modules/account/LINGYUN.Abp.Account.HttpApi.Client/ClientProxies/Volo/Abp/Account/AccountClientProxy.Generated.cs

@ -0,0 +1,52 @@
// This file is automatically generated by ABP framework to use MVC Controllers from CSharp
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Volo.Abp;
using Volo.Abp.Account;
using Volo.Abp.Application.Dtos;
using Volo.Abp.DependencyInjection;
using Volo.Abp.Http.Client;
using Volo.Abp.Http.Client.ClientProxying;
using Volo.Abp.Http.Modeling;
using Volo.Abp.Identity;
// ReSharper disable once CheckNamespace
namespace Volo.Abp.Account;
[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(IAccountAppService), typeof(AccountClientProxy))]
public partial class AccountClientProxy : ClientProxyBase<IAccountAppService>, IAccountAppService
{
public virtual async Task<IdentityUserDto> RegisterAsync(RegisterDto input)
{
return await RequestAsync<IdentityUserDto>(nameof(RegisterAsync), new ClientProxyRequestTypeValue
{
{ typeof(RegisterDto), input }
});
}
public virtual async Task SendPasswordResetCodeAsync(SendPasswordResetCodeDto input)
{
await RequestAsync(nameof(SendPasswordResetCodeAsync), new ClientProxyRequestTypeValue
{
{ typeof(SendPasswordResetCodeDto), input }
});
}
public virtual async Task<bool> VerifyPasswordResetTokenAsync(VerifyPasswordResetTokenInput input)
{
return await RequestAsync<bool>(nameof(VerifyPasswordResetTokenAsync), new ClientProxyRequestTypeValue
{
{ typeof(VerifyPasswordResetTokenInput), input }
});
}
public virtual async Task ResetPasswordAsync(ResetPasswordDto input)
{
await RequestAsync(nameof(ResetPasswordAsync), new ClientProxyRequestTypeValue
{
{ typeof(ResetPasswordDto), input }
});
}
}

7
aspnet-core/modules/account/LINGYUN.Abp.Account.HttpApi.Client/ClientProxies/Volo/Abp/Account/AccountClientProxy.cs

@ -0,0 +1,7 @@
// This file is part of AccountClientProxy, you can customize it here
// ReSharper disable once CheckNamespace
namespace Volo.Abp.Account;
public partial class AccountClientProxy
{
}

24
aspnet-core/modules/account/LINGYUN.Abp.Account.HttpApi.Client/ClientProxies/Volo/Abp/Account/DynamicClaimsClientProxy.Generated.cs

@ -0,0 +1,24 @@
// This file is automatically generated by ABP framework to use MVC Controllers from CSharp
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Volo.Abp;
using Volo.Abp.Account;
using Volo.Abp.Application.Dtos;
using Volo.Abp.DependencyInjection;
using Volo.Abp.Http.Client;
using Volo.Abp.Http.Client.ClientProxying;
using Volo.Abp.Http.Modeling;
// ReSharper disable once CheckNamespace
namespace Volo.Abp.Account;
[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(IDynamicClaimsAppService), typeof(DynamicClaimsClientProxy))]
public partial class DynamicClaimsClientProxy : ClientProxyBase<IDynamicClaimsAppService>, IDynamicClaimsAppService
{
public virtual async Task RefreshAsync()
{
await RequestAsync(nameof(RefreshAsync));
}
}

7
aspnet-core/modules/account/LINGYUN.Abp.Account.HttpApi.Client/ClientProxies/Volo/Abp/Account/DynamicClaimsClientProxy.cs

@ -0,0 +1,7 @@
// This file is part of DynamicClaimsClientProxy, you can customize it here
// ReSharper disable once CheckNamespace
namespace Volo.Abp.Account;
public partial class DynamicClaimsClientProxy
{
}

40
aspnet-core/modules/account/LINGYUN.Abp.Account.HttpApi.Client/ClientProxies/Volo/Abp/Account/ProfileClientProxy.Generated.cs

@ -0,0 +1,40 @@
// This file is automatically generated by ABP framework to use MVC Controllers from CSharp
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Volo.Abp;
using Volo.Abp.Account;
using Volo.Abp.Application.Dtos;
using Volo.Abp.DependencyInjection;
using Volo.Abp.Http.Client;
using Volo.Abp.Http.Client.ClientProxying;
using Volo.Abp.Http.Modeling;
// ReSharper disable once CheckNamespace
namespace Volo.Abp.Account;
[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(IProfileAppService), typeof(ProfileClientProxy))]
public partial class ProfileClientProxy : ClientProxyBase<IProfileAppService>, IProfileAppService
{
public virtual async Task<ProfileDto> GetAsync()
{
return await RequestAsync<ProfileDto>(nameof(GetAsync));
}
public virtual async Task<ProfileDto> UpdateAsync(UpdateProfileDto input)
{
return await RequestAsync<ProfileDto>(nameof(UpdateAsync), new ClientProxyRequestTypeValue
{
{ typeof(UpdateProfileDto), input }
});
}
public virtual async Task ChangePasswordAsync(ChangePasswordInput input)
{
await RequestAsync(nameof(ChangePasswordAsync), new ClientProxyRequestTypeValue
{
{ typeof(ChangePasswordInput), input }
});
}
}

7
aspnet-core/modules/account/LINGYUN.Abp.Account.HttpApi.Client/ClientProxies/Volo/Abp/Account/ProfileClientProxy.cs

@ -0,0 +1,7 @@
// This file is part of ProfileClientProxy, you can customize it here
// ReSharper disable once CheckNamespace
namespace Volo.Abp.Account;
public partial class ProfileClientProxy
{
}

1883
aspnet-core/modules/account/LINGYUN.Abp.Account.HttpApi.Client/ClientProxies/account-generate-proxy.json

File diff suppressed because it is too large

3
aspnet-core/modules/account/LINGYUN.Abp.Account.HttpApi.Client/FodyWeavers.xml

@ -0,0 +1,3 @@
<Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd">
<ConfigureAwait ContinueOnCapturedContext="false" />
</Weavers>

30
aspnet-core/modules/account/LINGYUN.Abp.Account.HttpApi.Client/FodyWeavers.xsd

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<!-- This file was generated by Fody. Manual changes to this file will be lost when your project is rebuilt. -->
<xs:element name="Weavers">
<xs:complexType>
<xs:all>
<xs:element name="ConfigureAwait" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:attribute name="ContinueOnCapturedContext" type="xs:boolean" />
</xs:complexType>
</xs:element>
</xs:all>
<xs:attribute name="VerifyAssembly" type="xs:boolean">
<xs:annotation>
<xs:documentation>'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="VerifyIgnoreCodes" type="xs:string">
<xs:annotation>
<xs:documentation>A comma-separated list of error codes that can be safely ignored in assembly verification.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="GenerateXsd" type="xs:boolean">
<xs:annotation>
<xs:documentation>'false' to turn off automatic generation of the XML Schema file.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:schema>

32
aspnet-core/modules/account/LINGYUN.Abp.Account.HttpApi.Client/LINGYUN.Abp.Account.HttpApi.Client.csproj

@ -0,0 +1,32 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\..\..\..\configureawait.props" />
<Import Project="..\..\..\..\common.props" />
<PropertyGroup>
<TargetFrameworks>netstandard2.0;netstandard2.1;net8.0;net9.0</TargetFrameworks>
<AssemblyName>LINGYUN.Abp.Account.HttpApi.Client</AssemblyName>
<PackageId>LINGYUN.Abp.Account.HttpApi.Client</PackageId>
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
<RootNamespace />
</PropertyGroup>
<ItemGroup>
<None Remove="ClientProxies\account-generate-proxy.json" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="ClientProxies\account-generate-proxy.json" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Volo.Abp.Account.HttpApi.Client" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\LINGYUN.Abp.Account.Application.Contracts\LINGYUN.Abp.Account.Application.Contracts.csproj" />
</ItemGroup>
</Project>

25
aspnet-core/modules/account/LINGYUN.Abp.Account.HttpApi.Client/LINGYUN/Abp/Account/AbpAccountHttpApiClientModule.cs

@ -0,0 +1,25 @@
using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.Account;
using Volo.Abp.Modularity;
using Volo.Abp.VirtualFileSystem;
using VoloAbpAccountHttpApiClientModule = Volo.Abp.Account.AbpAccountHttpApiClientModule;
namespace LINGYUN.Abp.Account;
[DependsOn(
typeof(AbpAccountApplicationContractsModule),
typeof(VoloAbpAccountHttpApiClientModule))]
public class AbpAccountHttpApiClientModule : AbpModule
{
public override void ConfigureServices(ServiceConfigurationContext context)
{
context.Services.AddStaticHttpClientProxies(
typeof(AbpAccountApplicationContractsModule).Assembly,
AccountRemoteServiceConsts.RemoteServiceName);
Configure<AbpVirtualFileSystemOptions>(options =>
{
options.FileSets.AddEmbedded<AbpAccountHttpApiClientModule>();
});
}
}
Loading…
Cancel
Save