Browse Source
Merge pull request #3269 from abpframework/Cotur-RemoteService-Account
Account Module RemoteService Name implemented
pull/3331/head
Halil İbrahim Kalkan
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with
11 additions and
5 deletions
-
modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/AccountRemoteServiceConsts.cs
-
modules/account/src/Volo.Abp.Account.HttpApi.Client/Volo/Abp/Account/AbpAccountHttpApiClientModule.cs
-
modules/account/src/Volo.Abp.Account.HttpApi/Volo/Abp/Account/AccountController.cs
-
modules/account/src/Volo.Abp.Account.Web/Areas/Account/Controllers/AccountController.cs
|
|
|
@ -0,0 +1,7 @@ |
|
|
|
namespace Volo.Abp.Account |
|
|
|
{ |
|
|
|
public static class AccountRemoteServiceConsts |
|
|
|
{ |
|
|
|
public const string RemoteServiceName = "AbpAccount"; |
|
|
|
} |
|
|
|
} |
|
|
|
@ -9,11 +9,10 @@ namespace Volo.Abp.Account |
|
|
|
typeof(AbpHttpClientModule))] |
|
|
|
public class AbpAccountHttpApiClientModule : AbpModule |
|
|
|
{ |
|
|
|
public const string RemoteServiceName = "Account"; |
|
|
|
|
|
|
|
public override void ConfigureServices(ServiceConfigurationContext context) |
|
|
|
{ |
|
|
|
context.Services.AddHttpClientProxies(typeof(AbpAccountApplicationContractsModule).Assembly, RemoteServiceName); |
|
|
|
context.Services.AddHttpClientProxies(typeof(AbpAccountApplicationContractsModule).Assembly, |
|
|
|
AccountRemoteServiceConsts.RemoteServiceName); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
@ -5,7 +5,7 @@ using Volo.Abp.Identity; |
|
|
|
|
|
|
|
namespace Volo.Abp.Account |
|
|
|
{ |
|
|
|
[RemoteService] |
|
|
|
[RemoteService(Name = AccountRemoteServiceConsts.RemoteServiceName)] |
|
|
|
[Area("account")] |
|
|
|
[Route("api/account")] |
|
|
|
public class AccountController : AbpController, IAccountAppService |
|
|
|
|
|
|
|
@ -15,7 +15,7 @@ using IdentityUser = Volo.Abp.Identity.IdentityUser; |
|
|
|
|
|
|
|
namespace Volo.Abp.Account.Web.Areas.Account.Controllers |
|
|
|
{ |
|
|
|
[RemoteService] |
|
|
|
[RemoteService(Name = AccountRemoteServiceConsts.RemoteServiceName)] |
|
|
|
[Controller] |
|
|
|
[ControllerName("Login")] |
|
|
|
[Area("Account")] |
|
|
|
|