diff --git a/templates/module/aspnet-core/src/MyCompanyName.MyProjectName.Application.Contracts/MyProjectNameRemoteServiceConsts.cs b/templates/module/aspnet-core/src/MyCompanyName.MyProjectName.Application.Contracts/MyProjectNameRemoteServiceConsts.cs index 875f41eb2e..73d9976bd8 100644 --- a/templates/module/aspnet-core/src/MyCompanyName.MyProjectName.Application.Contracts/MyProjectNameRemoteServiceConsts.cs +++ b/templates/module/aspnet-core/src/MyCompanyName.MyProjectName.Application.Contracts/MyProjectNameRemoteServiceConsts.cs @@ -2,6 +2,6 @@ { public class MyProjectNameRemoteServiceConsts { - public const string RemoteServiceName = "AbpAccount"; + public const string RemoteServiceName = "MyProjectName"; } } diff --git a/templates/module/aspnet-core/src/MyCompanyName.MyProjectName.HttpApi.Client/MyProjectNameHttpApiClientModule.cs b/templates/module/aspnet-core/src/MyCompanyName.MyProjectName.HttpApi.Client/MyProjectNameHttpApiClientModule.cs index 560c1c7669..ecf17f49e4 100644 --- a/templates/module/aspnet-core/src/MyCompanyName.MyProjectName.HttpApi.Client/MyProjectNameHttpApiClientModule.cs +++ b/templates/module/aspnet-core/src/MyCompanyName.MyProjectName.HttpApi.Client/MyProjectNameHttpApiClientModule.cs @@ -10,13 +10,11 @@ namespace MyCompanyName.MyProjectName typeof(AbpHttpClientModule))] public class MyProjectNameHttpApiClientModule : AbpModule { - public const string RemoteServiceName = "MyProjectName"; - public override void ConfigureServices(ServiceConfigurationContext context) { context.Services.AddHttpClientProxies( typeof(MyProjectNameApplicationContractsModule).Assembly, - RemoteServiceName + MyProjectNameRemoteServiceConsts.RemoteServiceName ); Configure(options =>