diff --git a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ServiceProxying/CSharp/CSharpServiceProxyGenerator.cs b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ServiceProxying/CSharp/CSharpServiceProxyGenerator.cs index 7da30a9ccc..c2cf740ff1 100644 --- a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ServiceProxying/CSharp/CSharpServiceProxyGenerator.cs +++ b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ServiceProxying/CSharp/CSharpServiceProxyGenerator.cs @@ -64,7 +64,7 @@ public class CSharpServiceProxyGenerator : ServiceProxyGeneratorBase usingNamespaceList) @@ -229,10 +229,10 @@ public class CSharpServiceProxyGenerator : ServiceProxyGeneratorBase", string.Empty); methodBuilder.Replace(", )", ")"); - methodBuilder.AppendLine(" {"); - methodBuilder.AppendLine(" //Client Proxy does not support the synchronization method, you should always use asynchronous methods as a best practice"); - methodBuilder.AppendLine(" throw new System.NotImplementedException(); "); - methodBuilder.AppendLine(" }"); + methodBuilder.AppendLine(" {"); + methodBuilder.AppendLine(" //Client Proxy does not support the synchronization method, you should always use asynchronous methods as a best practice"); + methodBuilder.AppendLine(" throw new System.NotImplementedException(); "); + methodBuilder.AppendLine(" }"); } private void GenerateAsynchronousMethod( @@ -253,31 +253,31 @@ public class CSharpServiceProxyGenerator : ServiceProxyGeneratorBase", string.Empty); methodBuilder.Replace(", )", ")"); - methodBuilder.AppendLine(" {"); + methodBuilder.AppendLine(" {"); var argsTemplate = "new ClientProxyRequestTypeValue" + - $"{Environment.NewLine} {{" + - $"{Environment.NewLine} }}"; + $"{Environment.NewLine} {{" + + $"{Environment.NewLine} }}"; var args = action.ParametersOnMethod.Any() ? argsTemplate : string.Empty; if (returnTypeName == "void") { - methodBuilder.AppendLine($" await RequestAsync(nameof({action.Name}), {args});"); + methodBuilder.AppendLine($" await RequestAsync(nameof({action.Name}), {args});"); } else { - methodBuilder.AppendLine($" return await RequestAsync<{returnTypeName}>(nameof({action.Name}), {args});"); + methodBuilder.AppendLine($" return await RequestAsync<{returnTypeName}>(nameof({action.Name}), {args});"); } foreach (var parameter in action.ParametersOnMethod) { - methodBuilder.Replace("", $"{Environment.NewLine} {{ typeof({GetRealTypeName(parameter.Type)}), {parameter.Name} }},"); + methodBuilder.Replace("", $"{Environment.NewLine} {{ typeof({GetRealTypeName(parameter.Type)}), {parameter.Name} }},"); } methodBuilder.Replace(",", string.Empty); methodBuilder.Replace(", )", ")"); - methodBuilder.AppendLine(" }"); + methodBuilder.AppendLine(" }"); } private bool ShouldGenerateProxy(ControllerApiDescriptionModel controllerApiDescription)