Browse Source
Merge pull request #10194 from abpframework/liangshiwei/patch-1
Csharp proxy compatible ApplicationService suffix
pull/10197/head
maliming
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ServiceProxying/CSharp/CSharpServiceProxyGenerator.cs
|
|
|
@ -21,7 +21,7 @@ namespace Volo.Abp.Cli.ServiceProxying.CSharp |
|
|
|
private const string MethodPlaceholder = "<method placeholder>"; |
|
|
|
private const string ClassName = "<className>"; |
|
|
|
private const string ServiceInterface = "<serviceInterface>"; |
|
|
|
private const string ServicePostfix = "AppService"; |
|
|
|
private static string[] ServicePostfixes = {"AppService" , "ApplicationService"}; |
|
|
|
private const string DefaultNamespace = "ClientProxies"; |
|
|
|
private const string Namespace = "<namespace>"; |
|
|
|
private const string AppServicePrefix = "Volo.Abp.Application.Services"; |
|
|
|
@ -290,7 +290,7 @@ namespace Volo.Abp.Cli.ServiceProxying.CSharp |
|
|
|
} |
|
|
|
|
|
|
|
var serviceInterface = controllerApiDescription.Interfaces.Last(); |
|
|
|
return serviceInterface.Type.EndsWith(ServicePostfix); |
|
|
|
return ServicePostfixes.Any(x => serviceInterface.Type.EndsWith(x)); |
|
|
|
} |
|
|
|
|
|
|
|
private bool ShouldGenerateMethod(string appServiceTypeName, ActionApiDescriptionModel action) |
|
|
|
|