Browse Source
Merge pull request #3271 from abpframework/Cotur-RemoteService
Remote service name is set for all modules
pull/3276/head
Halil İbrahim Kalkan
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
16 changed files with
41 additions and
20 deletions
-
modules/blogging/src/Volo.Blogging.Application.Contracts/Volo/Blogging/BloggingRemoteServiceConsts.cs
-
modules/blogging/src/Volo.Blogging.HttpApi.Client/Volo/Blogging/BloggingHttpApiClientModule.cs
-
modules/blogging/src/Volo.Blogging.HttpApi/Volo/Blogging/BlogFilesController.cs
-
modules/blogging/src/Volo.Blogging.HttpApi/Volo/Blogging/BlogsController.cs
-
modules/blogging/src/Volo.Blogging.HttpApi/Volo/Blogging/CommentsController.cs
-
modules/blogging/src/Volo.Blogging.HttpApi/Volo/Blogging/PostsController.cs
-
modules/blogging/src/Volo.Blogging.HttpApi/Volo/Blogging/TagsController.cs
-
modules/feature-management/src/Volo.Abp.FeatureManagement.Application.Contracts/Volo/Abp/FeatureManagement/FeatureManagementRemoteServiceConsts.cs
-
modules/feature-management/src/Volo.Abp.FeatureManagement.HttpApi.Client/Volo/Abp/FeatureManagement/AbpFeatureManagementHttpApiClientModule.cs
-
modules/feature-management/src/Volo.Abp.FeatureManagement.HttpApi/Volo/Abp/FeatureManagement/FeaturesController.cs
-
modules/permission-management/src/Volo.Abp.PermissionManagement.Application.Contracts/Volo/Abp/PermissionManagement/PermissionManagementRemoteServiceConsts.cs
-
modules/permission-management/src/Volo.Abp.PermissionManagement.HttpApi.Client/Volo/Abp/PermissionManagement/AbpPermissionManagementHttpApiClientModule.cs
-
modules/permission-management/src/Volo.Abp.PermissionManagement.HttpApi/Volo/Abp/PermissionManagement/PermissionsController.cs
-
modules/tenant-management/src/Volo.Abp.TenantManagement.Application.Contracts/Volo/Abp/TenantManagement/TenantManagementRemoteServiceConsts.cs
-
modules/tenant-management/src/Volo.Abp.TenantManagement.HttpApi.Client/Volo/Abp/TenantManagement/AbpTenantManagementHttpApiClientModule.cs
-
modules/tenant-management/src/Volo.Abp.TenantManagement.HttpApi/Volo/Abp/TenantManagement/TenantController.cs
|
|
@ -0,0 +1,7 @@ |
|
|
|
|
|
namespace Volo.Blogging |
|
|
|
|
|
{ |
|
|
|
|
|
public static class BloggingRemoteServiceConsts |
|
|
|
|
|
{ |
|
|
|
|
|
public const string RemoteServiceName = "Blogging"; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
@ -9,11 +9,10 @@ namespace Volo.Blogging |
|
|
typeof(AbpHttpClientModule))] |
|
|
typeof(AbpHttpClientModule))] |
|
|
public class BloggingHttpApiClientModule : AbpModule |
|
|
public class BloggingHttpApiClientModule : AbpModule |
|
|
{ |
|
|
{ |
|
|
public const string RemoteServiceName = "Blogging"; |
|
|
|
|
|
|
|
|
|
|
|
public override void ConfigureServices(ServiceConfigurationContext context) |
|
|
public override void ConfigureServices(ServiceConfigurationContext context) |
|
|
{ |
|
|
{ |
|
|
context.Services.AddHttpClientProxies(typeof(BloggingApplicationContractsModule).Assembly, RemoteServiceName); |
|
|
context.Services.AddHttpClientProxies(typeof(BloggingApplicationContractsModule).Assembly, |
|
|
|
|
|
BloggingRemoteServiceConsts.RemoteServiceName); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
@ -10,7 +10,7 @@ using Volo.Blogging.Files; |
|
|
|
|
|
|
|
|
namespace Volo.Blogging |
|
|
namespace Volo.Blogging |
|
|
{ |
|
|
{ |
|
|
[RemoteService] |
|
|
[RemoteService(Name = BloggingRemoteServiceConsts.RemoteServiceName)] |
|
|
[Area("blogging")] |
|
|
[Area("blogging")] |
|
|
[Route("api/blogging/files")] |
|
|
[Route("api/blogging/files")] |
|
|
public class BlogFilesController : AbpController, IFileAppService |
|
|
public class BlogFilesController : AbpController, IFileAppService |
|
|
|
|
|
@ -9,7 +9,7 @@ using Volo.Blogging.Blogs.Dtos; |
|
|
|
|
|
|
|
|
namespace Volo.Blogging |
|
|
namespace Volo.Blogging |
|
|
{ |
|
|
{ |
|
|
[RemoteService] |
|
|
[RemoteService(Name = BloggingRemoteServiceConsts.RemoteServiceName)] |
|
|
[Area("blogging")] |
|
|
[Area("blogging")] |
|
|
[Route("api/blogging/blogs")] |
|
|
[Route("api/blogging/blogs")] |
|
|
public class BlogsController : AbpController, IBlogAppService |
|
|
public class BlogsController : AbpController, IBlogAppService |
|
|
|
|
|
@ -9,7 +9,7 @@ using Volo.Blogging.Comments.Dtos; |
|
|
|
|
|
|
|
|
namespace Volo.Blogging |
|
|
namespace Volo.Blogging |
|
|
{ |
|
|
{ |
|
|
[RemoteService] |
|
|
[RemoteService(Name = BloggingRemoteServiceConsts.RemoteServiceName)] |
|
|
[Area("blogging")] |
|
|
[Area("blogging")] |
|
|
[Route("api/blogging/comments")] |
|
|
[Route("api/blogging/comments")] |
|
|
public class CommentsController : AbpController, ICommentAppService |
|
|
public class CommentsController : AbpController, ICommentAppService |
|
|
|
|
|
@ -8,7 +8,7 @@ using Volo.Blogging.Posts; |
|
|
|
|
|
|
|
|
namespace Volo.Blogging |
|
|
namespace Volo.Blogging |
|
|
{ |
|
|
{ |
|
|
[RemoteService] |
|
|
[RemoteService(Name = BloggingRemoteServiceConsts.RemoteServiceName)] |
|
|
[Area("blogging")] |
|
|
[Area("blogging")] |
|
|
[Route("api/blogging/posts")] |
|
|
[Route("api/blogging/posts")] |
|
|
public class PostsController : AbpController, IPostAppService |
|
|
public class PostsController : AbpController, IPostAppService |
|
|
|
|
|
@ -9,7 +9,7 @@ using Volo.Blogging.Tagging.Dtos; |
|
|
|
|
|
|
|
|
namespace Volo.Blogging |
|
|
namespace Volo.Blogging |
|
|
{ |
|
|
{ |
|
|
[RemoteService] |
|
|
[RemoteService(Name = BloggingRemoteServiceConsts.RemoteServiceName)] |
|
|
[Area("blogging")] |
|
|
[Area("blogging")] |
|
|
[Route("api/blogging/tags")] |
|
|
[Route("api/blogging/tags")] |
|
|
public class TagsController : AbpController, ITagAppService |
|
|
public class TagsController : AbpController, ITagAppService |
|
|
|
|
|
@ -0,0 +1,7 @@ |
|
|
|
|
|
namespace Volo.Abp.FeatureManagement |
|
|
|
|
|
{ |
|
|
|
|
|
public class FeatureManagementRemoteServiceConsts |
|
|
|
|
|
{ |
|
|
|
|
|
public const string RemoteServiceName = "FeatureManagement"; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
@ -9,13 +9,11 @@ namespace Volo.Abp.FeatureManagement |
|
|
typeof(AbpHttpClientModule))] |
|
|
typeof(AbpHttpClientModule))] |
|
|
public class AbpFeatureManagementHttpApiClientModule : AbpModule |
|
|
public class AbpFeatureManagementHttpApiClientModule : AbpModule |
|
|
{ |
|
|
{ |
|
|
public const string RemoteServiceName = "AbpFeatureManagement"; |
|
|
|
|
|
|
|
|
|
|
|
public override void ConfigureServices(ServiceConfigurationContext context) |
|
|
public override void ConfigureServices(ServiceConfigurationContext context) |
|
|
{ |
|
|
{ |
|
|
context.Services.AddHttpClientProxies( |
|
|
context.Services.AddHttpClientProxies( |
|
|
typeof(AbpFeatureManagementApplicationContractsModule).Assembly, |
|
|
typeof(AbpFeatureManagementApplicationContractsModule).Assembly, |
|
|
RemoteServiceName |
|
|
FeatureManagementRemoteServiceConsts.RemoteServiceName |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
@ -4,7 +4,7 @@ using Volo.Abp.AspNetCore.Mvc; |
|
|
|
|
|
|
|
|
namespace Volo.Abp.FeatureManagement |
|
|
namespace Volo.Abp.FeatureManagement |
|
|
{ |
|
|
{ |
|
|
[RemoteService] |
|
|
[RemoteService(Name = FeatureManagementRemoteServiceConsts.RemoteServiceName)] |
|
|
[Area("abp")] |
|
|
[Area("abp")] |
|
|
public class FeaturesController : AbpController, IFeatureAppService |
|
|
public class FeaturesController : AbpController, IFeatureAppService |
|
|
{ |
|
|
{ |
|
|
|
|
|
@ -0,0 +1,7 @@ |
|
|
|
|
|
namespace Volo.Abp.PermissionManagement |
|
|
|
|
|
{ |
|
|
|
|
|
public class PermissionManagementRemoteServiceConsts |
|
|
|
|
|
{ |
|
|
|
|
|
public const string RemoteServiceName = "AbpPermissionManagement"; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
@ -9,13 +9,11 @@ namespace Volo.Abp.PermissionManagement |
|
|
typeof(AbpHttpClientModule))] |
|
|
typeof(AbpHttpClientModule))] |
|
|
public class AbpPermissionManagementHttpApiClientModule : AbpModule |
|
|
public class AbpPermissionManagementHttpApiClientModule : AbpModule |
|
|
{ |
|
|
{ |
|
|
public const string RemoteServiceName = "AbpPermissionManagement"; |
|
|
|
|
|
|
|
|
|
|
|
public override void ConfigureServices(ServiceConfigurationContext context) |
|
|
public override void ConfigureServices(ServiceConfigurationContext context) |
|
|
{ |
|
|
{ |
|
|
context.Services.AddHttpClientProxies( |
|
|
context.Services.AddHttpClientProxies( |
|
|
typeof(AbpPermissionManagementApplicationContractsModule).Assembly, |
|
|
typeof(AbpPermissionManagementApplicationContractsModule).Assembly, |
|
|
RemoteServiceName |
|
|
PermissionManagementRemoteServiceConsts.RemoteServiceName |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
@ -4,7 +4,7 @@ using Volo.Abp.AspNetCore.Mvc; |
|
|
|
|
|
|
|
|
namespace Volo.Abp.PermissionManagement |
|
|
namespace Volo.Abp.PermissionManagement |
|
|
{ |
|
|
{ |
|
|
[RemoteService] |
|
|
[RemoteService(Name = PermissionManagementRemoteServiceConsts.RemoteServiceName)] |
|
|
[Area("abp")] |
|
|
[Area("abp")] |
|
|
public class PermissionsController : AbpController, IPermissionAppService |
|
|
public class PermissionsController : AbpController, IPermissionAppService |
|
|
{ |
|
|
{ |
|
|
|
|
|
@ -0,0 +1,7 @@ |
|
|
|
|
|
namespace Volo.Abp.TenantManagement |
|
|
|
|
|
{ |
|
|
|
|
|
public class TenantManagementRemoteServiceConsts |
|
|
|
|
|
{ |
|
|
|
|
|
public const string RemoteServiceName = "AbpTenantManagement"; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
@ -9,13 +9,11 @@ namespace Volo.Abp.TenantManagement |
|
|
typeof(AbpHttpClientModule))] |
|
|
typeof(AbpHttpClientModule))] |
|
|
public class AbpTenantManagementHttpApiClientModule : AbpModule |
|
|
public class AbpTenantManagementHttpApiClientModule : AbpModule |
|
|
{ |
|
|
{ |
|
|
public const string RemoteServiceName = "AbpTenantManagement"; |
|
|
|
|
|
|
|
|
|
|
|
public override void ConfigureServices(ServiceConfigurationContext context) |
|
|
public override void ConfigureServices(ServiceConfigurationContext context) |
|
|
{ |
|
|
{ |
|
|
context.Services.AddHttpClientProxies( |
|
|
context.Services.AddHttpClientProxies( |
|
|
typeof(AbpTenantManagementApplicationContractsModule).Assembly, |
|
|
typeof(AbpTenantManagementApplicationContractsModule).Assembly, |
|
|
RemoteServiceName |
|
|
TenantManagementRemoteServiceConsts.RemoteServiceName |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
@ -7,7 +7,7 @@ using Volo.Abp.AspNetCore.Mvc; |
|
|
namespace Volo.Abp.TenantManagement |
|
|
namespace Volo.Abp.TenantManagement |
|
|
{ |
|
|
{ |
|
|
[Controller] |
|
|
[Controller] |
|
|
[RemoteService] |
|
|
[RemoteService(Name = TenantManagementRemoteServiceConsts.RemoteServiceName)] |
|
|
[Area("multi-tenancy")] |
|
|
[Area("multi-tenancy")] |
|
|
[Route("api/multi-tenancy/tenants")] |
|
|
[Route("api/multi-tenancy/tenants")] |
|
|
public class TenantController : AbpController, ITenantAppService //TODO: Throws exception on validation if we inherit from Controller
|
|
|
public class TenantController : AbpController, ITenantAppService //TODO: Throws exception on validation if we inherit from Controller
|
|
|
|