We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b9ccd4 commit e63bd19Copy full SHA for e63bd19
Templates/CSharp/Requests/IMethodRequest.cs.tt
@@ -47,6 +47,7 @@ var methodReturnTag = sendAsyncReturnType == null
47
: string.Concat("The", sendAsyncReturnType);
48
49
bool hasParameters = method.Parameters != null && method.Parameters.Any();
50
+bool includeRequestBody = hasParameters && isAction;
51
bool returnsStream = string.Equals(sendAsyncReturnType, "Stream");
52
53
var features = host.CurrentType.GetFeatures();
@@ -67,7 +68,7 @@ namespace <#=method.Namespace.GetNamespaceName()#>
67
68
public partial interface I<#=requestType#> : IBaseRequest
69
{
70
<#
- if (hasParameters && (isAction || isComposable))
71
+ if (includeRequestBody)
72
73
#>
74
0 commit comments