Merge pull request #3271 from abpframework/Cotur-RemoteService

Remote service name is set for all modules
pull/3274/head
Halil İbrahim Kalkan 5 years ago committed by GitHub
commit 463f21c1c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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))]
public class BloggingHttpApiClientModule : AbpModule
{
public const string RemoteServiceName = "Blogging";
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
{
[RemoteService]
[RemoteService(Name = BloggingRemoteServiceConsts.RemoteServiceName)]
[Area("blogging")]
[Route("api/blogging/files")]
public class BlogFilesController : AbpController, IFileAppService

@ -9,7 +9,7 @@ using Volo.Blogging.Blogs.Dtos;
namespace Volo.Blogging
{
[RemoteService]
[RemoteService(Name = BloggingRemoteServiceConsts.RemoteServiceName)]
[Area("blogging")]
[Route("api/blogging/blogs")]
public class BlogsController : AbpController, IBlogAppService

@ -9,7 +9,7 @@ using Volo.Blogging.Comments.Dtos;
namespace Volo.Blogging
{
[RemoteService]
[RemoteService(Name = BloggingRemoteServiceConsts.RemoteServiceName)]
[Area("blogging")]
[Route("api/blogging/comments")]
public class CommentsController : AbpController, ICommentAppService

@ -8,7 +8,7 @@ using Volo.Blogging.Posts;
namespace Volo.Blogging
{
[RemoteService]
[RemoteService(Name = BloggingRemoteServiceConsts.RemoteServiceName)]
[Area("blogging")]
[Route("api/blogging/posts")]
public class PostsController : AbpController, IPostAppService

@ -9,7 +9,7 @@ using Volo.Blogging.Tagging.Dtos;
namespace Volo.Blogging
{
[RemoteService]
[RemoteService(Name = BloggingRemoteServiceConsts.RemoteServiceName)]
[Area("blogging")]
[Route("api/blogging/tags")]
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))]
public class AbpFeatureManagementHttpApiClientModule : AbpModule
{
public const string RemoteServiceName = "AbpFeatureManagement";
public override void ConfigureServices(ServiceConfigurationContext context)
{
context.Services.AddHttpClientProxies(
typeof(AbpFeatureManagementApplicationContractsModule).Assembly,
RemoteServiceName
FeatureManagementRemoteServiceConsts.RemoteServiceName
);
}
}

@ -4,7 +4,7 @@ using Volo.Abp.AspNetCore.Mvc;
namespace Volo.Abp.FeatureManagement
{
[RemoteService]
[RemoteService(Name = FeatureManagementRemoteServiceConsts.RemoteServiceName)]
[Area("abp")]
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))]
public class AbpPermissionManagementHttpApiClientModule : AbpModule
{
public const string RemoteServiceName = "AbpPermissionManagement";
public override void ConfigureServices(ServiceConfigurationContext context)
{
context.Services.AddHttpClientProxies(
typeof(AbpPermissionManagementApplicationContractsModule).Assembly,
RemoteServiceName
PermissionManagementRemoteServiceConsts.RemoteServiceName
);
}
}

@ -4,7 +4,7 @@ using Volo.Abp.AspNetCore.Mvc;
namespace Volo.Abp.PermissionManagement
{
[RemoteService]
[RemoteService(Name = PermissionManagementRemoteServiceConsts.RemoteServiceName)]
[Area("abp")]
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))]
public class AbpTenantManagementHttpApiClientModule : AbpModule
{
public const string RemoteServiceName = "AbpTenantManagement";
public override void ConfigureServices(ServiceConfigurationContext context)
{
context.Services.AddHttpClientProxies(
typeof(AbpTenantManagementApplicationContractsModule).Assembly,
RemoteServiceName
TenantManagementRemoteServiceConsts.RemoteServiceName
);
}
}

@ -7,7 +7,7 @@ using Volo.Abp.AspNetCore.Mvc;
namespace Volo.Abp.TenantManagement
{
[Controller]
[RemoteService]
[RemoteService(Name = TenantManagementRemoteServiceConsts.RemoteServiceName)]
[Area("multi-tenancy")]
[Route("api/multi-tenancy/tenants")]
public class TenantController : AbpController, ITenantAppService //TODO: Throws exception on validation if we inherit from Controller

Loading…
Cancel
Save