Browse Source
Merge pull request #14131 from abpframework/liangshiwei/cli
Enhance ABP CLI
pull/14147/head
maliming
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
13 additions and
1 deletions
-
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ServiceProxying/CSharp/CSharpServiceProxyGenerator.cs
|
|
@ -293,7 +293,19 @@ public class CSharpServiceProxyGenerator : ServiceProxyGeneratorBase<CSharpServi |
|
|
|
|
|
|
|
|
private bool ShouldGenerateMethod(string appServiceTypeName, ActionApiDescriptionModel action) |
|
|
private bool ShouldGenerateMethod(string appServiceTypeName, ActionApiDescriptionModel action) |
|
|
{ |
|
|
{ |
|
|
return action.ImplementFrom.StartsWith(AppServicePrefix) || action.ImplementFrom.StartsWith(appServiceTypeName); |
|
|
var shouldGenerateMethod = action.ImplementFrom.StartsWith(AppServicePrefix) || action.ImplementFrom.StartsWith(appServiceTypeName); |
|
|
|
|
|
|
|
|
|
|
|
if (!shouldGenerateMethod) |
|
|
|
|
|
{ |
|
|
|
|
|
shouldGenerateMethod = IsAppServiceInterface(GetRealTypeName(action.ImplementFrom)); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return shouldGenerateMethod; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private bool IsAppServiceInterface(string typeName) |
|
|
|
|
|
{ |
|
|
|
|
|
return typeName.StartsWith("I") && ServicePostfixes.Any(typeName.EndsWith); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private string GetTypeNamespace(string typeFullName) |
|
|
private string GetTypeNamespace(string typeFullName) |
|
|
|