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
reply: This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **4 days**. It will be closed if no further activity occurs **within 3 days of this comment**.
46
+
- description:
47
+
frequencies:
48
+
- hourly:
49
+
hour: 1
50
+
filters:
51
+
- isIssue
52
+
- isOpen
53
+
- hasLabel:
54
+
label: duplicate
55
+
- noActivitySince:
56
+
days: 1
57
+
actions:
58
+
- addReply:
59
+
reply: This issue has been marked as duplicate and has not had any activity for **1 day**. It will be closed for housekeeping purposes.
Copy file name to clipboardExpand all lines: src/Microsoft.Graph.Core/Requests/Content/BatchRequestContent.cs
+28-4Lines changed: 28 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@ namespace Microsoft.Graph
9
9
usingSystem.Collections.Generic;
10
10
usingSystem.IO;
11
11
usingSystem.Linq;
12
+
usingSystem.ComponentModel;
12
13
usingSystem.Net;
13
14
usingSystem.Net.Http;
14
15
usingSystem.Net.Http.Headers;
@@ -19,6 +20,7 @@ namespace Microsoft.Graph
19
20
/// <summary>
20
21
/// A <see cref="HttpContent"/> implementation to handle json batch requests.
21
22
/// </summary>
23
+
[EditorBrowsable(EditorBrowsableState.Never)]
22
24
publicclassBatchRequestContent:HttpContent
23
25
{
24
26
/// <summary>
@@ -35,6 +37,7 @@ public class BatchRequestContent: HttpContent
35
37
/// Constructs a new <see cref="BatchRequestContent"/>.
36
38
/// </summary>
37
39
/// <param name="baseClient">The <see cref="IBaseClient"/> for making requests</param>
40
+
[Obsolete("Please use the BatchRequestContentCollection for making batch requests as it supports handling more than 20 requests and provides a similar API experience.")]
38
41
publicBatchRequestContent(IBaseClientbaseClient)
39
42
:this(baseClient,newBatchRequestStep[]{})
40
43
{
@@ -45,6 +48,7 @@ public BatchRequestContent(IBaseClient baseClient)
45
48
/// </summary>
46
49
/// <param name="baseClient">The <see cref="IBaseClient"/> for making requests</param>
47
50
/// <param name="batchRequestSteps">A list of <see cref="BatchRequestStep"/> to add to the batch request content.</param>
51
+
[Obsolete("Please use the BatchRequestContentCollection for making batch requests as it supports handling more than 20 requests and provides a similar API experience.")]
@@ -54,6 +58,7 @@ public BatchRequestContent(IBaseClient baseClient)
54
58
/// </summary>
55
59
/// <param name="requestAdapter">The <see cref="IRequestAdapter"/> for making requests</param>
56
60
/// <param name="batchRequestSteps">A list of <see cref="BatchRequestStep"/> to add to the batch request content.</param>
61
+
[Obsolete("Please use the BatchRequestContentCollection for making batch requests as it supports handling more than 20 requests and provides a similar API experience.")]
@@ -83,6 +88,8 @@ public BatchRequestContent(IRequestAdapter requestAdapter, params BatchRequestSt
83
88
/// </summary>
84
89
/// <param name="batchRequestStep">A <see cref="BatchRequestStep"/> to add.</param>
85
90
/// <returns>True or false based on addition or not addition of the provided <see cref="BatchRequestStep"/>. </returns>
91
+
/// <exception cref="ArgumentException"> When the the request step contains a depends on to a request id that is not present.</exception>
92
+
[Obsolete("Please use the BatchRequestContentCollection for making batch requests as it supports handling more than 20 requests and provides a similar API experience.")]
@@ -102,6 +113,7 @@ public bool AddBatchRequestStep(BatchRequestStep batchRequestStep)
102
113
/// </summary>
103
114
/// <param name="httpRequestMessage">A <see cref="HttpRequestMessage"/> to use to build a <see cref="BatchRequestStep"/> to add.</param>
104
115
/// <returns>The requestId of the newly created <see cref="BatchRequestStep"/></returns>
116
+
[Obsolete("Please use the BatchRequestContentCollection for making batch requests as it supports handling more than 20 requests and provides a similar API experience.")]
@@ -118,6 +130,7 @@ public string AddBatchRequestStep(HttpRequestMessage httpRequestMessage)
118
130
/// </summary>
119
131
/// <param name="requestInformation">A <see cref="RequestInformation"/> to use to build a <see cref="BatchRequestStep"/> to add.</param>
120
132
/// <returns>The requestId of the newly created <see cref="BatchRequestStep"/></returns>
133
+
[Obsolete("Please use the BatchRequestContentCollection for making batch requests as it supports handling more than 20 requests and provides a similar API experience.")]
0 commit comments