Skip to content

Commit d287f57

Browse files
author
Caitlin Bales
committed
Move cancellation token comment to correct location
1 parent 635b3e4 commit d287f57

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Templates/CSharp/Base/ICollectionRequest.Base.template.tt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,6 @@ public string GetPostAsyncMethodForReferencesRequest(OdcmProperty odcmProperty)
9090

9191
var stringBuilder = new StringBuilder();
9292

93-
stringBuilder.Append(Environment.NewLine);
94-
stringBuilder.Append(Environment.NewLine);
95-
stringBuilder.Append(" /// <param name=\"cancellationToken\">The <see cref=\"CancellationToken\"/> for the request.</param>");
9693
stringBuilder.Append(Environment.NewLine);
9794
stringBuilder.AppendFormat(" System.Threading.Tasks.Task AddAsync({0} {1});", propertyType, sanitizedPropertyName);
9895

@@ -101,6 +98,8 @@ public string GetPostAsyncMethodForReferencesRequest(OdcmProperty odcmProperty)
10198

10299
this.AppendMethodHeaderToPostAsyncMethod(propertyType, sanitizedPropertyName, stringBuilder);
103100
stringBuilder.Append(Environment.NewLine);
101+
stringBuilder.Append(" /// <param name=\"cancellationToken\">The <see cref=\"CancellationToken\"/> for the request.</param>");
102+
stringBuilder.Append(Environment.NewLine);
104103
stringBuilder.AppendFormat(" System.Threading.Tasks.Task AddAsync({0} {1}, CancellationToken cancellationToken);", propertyType, sanitizedPropertyName);
105104

106105
return stringBuilder.ToString();

0 commit comments

Comments
 (0)