Skip to content

Commit e63bd19

Browse files
committed
IMethodRequest.cs.tt- reverted to use includeRequestBody
1 parent 3b9ccd4 commit e63bd19

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Templates/CSharp/Requests/IMethodRequest.cs.tt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ var methodReturnTag = sendAsyncReturnType == null
4747
: string.Concat("The", sendAsyncReturnType);
4848

4949
bool hasParameters = method.Parameters != null && method.Parameters.Any();
50+
bool includeRequestBody = hasParameters && isAction;
5051
bool returnsStream = string.Equals(sendAsyncReturnType, "Stream");
5152

5253
var features = host.CurrentType.GetFeatures();
@@ -67,7 +68,7 @@ namespace <#=method.Namespace.GetNamespaceName()#>
6768
public partial interface I<#=requestType#> : IBaseRequest
6869
{
6970
<#
70-
if (hasParameters && (isAction || isComposable))
71+
if (includeRequestBody)
7172
{
7273
#>
7374

0 commit comments

Comments
 (0)