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 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 exception description to documentation
* Adding and refactoring exception documentation
- 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.
* Space Indentation Fixes
Copy file name to clipboardExpand all lines: Templates/CSharp/Base/EntityRequest.Base.template.tt
+28-2Lines changed: 28 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -350,8 +350,8 @@ 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
-
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>");
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>");
355
355
}
356
356
357
357
stringBuilder.Append(Environment.NewLine);
@@ -419,6 +419,32 @@ public string GetEntityUpdateAsyncMethod(OdcmClass odcmClass, bool initializeCol
419
419
stringBuilder.Append(Environment.NewLine);
420
420
stringBuilder.Append(" }");
421
421
stringBuilder.Append(Environment.NewLine);
422
+
stringBuilder.AppendFormat(" if ({0}ToUpdate.AdditionalData != null)", lowerCaseEntityName);
423
+
stringBuilder.Append(Environment.NewLine);
424
+
stringBuilder.Append(" {");
425
+
stringBuilder.Append(Environment.NewLine);
426
+
stringBuilder.AppendFormat(" if ({0}ToUpdate.AdditionalData.ContainsKey(Constants.HttpPropertyNames.ResponseHeaders) ||", lowerCaseEntityName);
Copy file name to clipboardExpand all lines: Templates/CSharp/Base/IEntityRequest.Base.template.tt
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -274,9 +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
-
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>");
279
-
}
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