You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updating EntityRequest.Base.template with code fix for response headers issue (#202)
* Updating template with response headers fix.
* New changes will propagate the fix for having response headers and status codes in request objects when UpdateAsync method is called in entities
* Adding the exception documentation in IEntityRequest.Base
- Refactoring in EntityRequest.Base to include this if includeSendParams == true so that it shows in the async UpdateAsync() method.
Copy file name to clipboardExpand all lines: Templates/CSharp/Base/EntityRequest.Base.template.tt
+29-1Lines changed: 29 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -350,7 +350,9 @@ public void AppendUpdateAsyncHeader(string entityName, string lowerCaseEntityNam
350
350
{
351
351
stringBuilder.Append(Environment.NewLine);
352
352
stringBuilder.Append(" /// <param name=\"cancellationToken\">The <see cref=\"CancellationToken\"/> for the request.</param>");
353
-
}
353
+
stringBuilder.Append(Environment.NewLine);
354
+
stringBuilder.Append(" /// <exception cref=\"ClientException\">Thrown when an object returned in a response is used for updating an object in Microsoft Graph.</exception>");
Copy file name to clipboardExpand all lines: Templates/CSharp/Base/IEntityRequest.Base.template.tt
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -274,7 +274,9 @@ public void AppendUpdateAsyncMethodHeader(string entityName, string lowerCaseEnt
274
274
{
275
275
stringBuilder.Append(Environment.NewLine);
276
276
stringBuilder.Append(" /// <param name=\"cancellationToken\">The <see cref=\"CancellationToken\"/> for the request.</param>");
277
-
}
277
+
stringBuilder.Append(Environment.NewLine);
278
+
stringBuilder.Append(" /// <exception cref=\"ClientException\">Thrown when an object returned in a response is used for updating an object in Microsoft Graph.</exception>");
0 commit comments