Browse Source

Merge pull request #15394 from abpframework/liangshiwei/cli

Enhance ABP CLI
pull/15396/head
maliming 4 years ago
committed by GitHub
parent
commit
92b9094871
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ServiceProxying/CSharp/CSharpServiceProxyGenerator.cs

4
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ServiceProxying/CSharp/CSharpServiceProxyGenerator.cs

@ -507,7 +507,7 @@ public class CSharpServiceProxyGenerator : ServiceProxyGeneratorBase<CSharpServi
private static bool IsAppServiceInterface(string typeName)
{
return typeName.StartsWith("I") && ServicePostfixes.Any(typeName.EndsWith);
return typeName.StartsWith("I") && ServicePostfixes.Any(typeName.Contains);
}
private static string GetTypeNamespace(string typeFullName)
@ -546,7 +546,7 @@ public class CSharpServiceProxyGenerator : ServiceProxyGeneratorBase<CSharpServi
for (var x = 0; x < s2.Length; x++)
{
type.Append(s2[x].Split(".").Last());
if (x < s1.Length - 1)
if (x < s2.Length - 1)
{
type.Append(", ");
}

Loading…
Cancel
Save