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
Copy file name to clipboardExpand all lines: xml/System.Net.Http/HttpClient.xml
+15-10Lines changed: 15 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -194,8 +194,13 @@ public class GoodController : ApiController
194
194
</AssemblyInfo>
195
195
<Parameters />
196
196
<Docs>
197
-
<summary>Initializes a new instance of the <seecref="T:System.Net.Http.HttpClient" /> class.</summary>
198
-
<remarks>To be added.</remarks>
197
+
<summary>Initializes a new instance of the <seecref="T:System.Net.Http.HttpClient" /> class using a <seecref="T:System.Net.Http.HttpClientHandler" /> that is disposed when this instance is disposed.</summary>
198
+
<remarks>
199
+
<formattype="text/markdown"><) constructor.
202
+
]]></format>
203
+
</remarks>
199
204
</Docs>
200
205
</Member>
201
206
<MemberMemberName=".ctor">
@@ -224,14 +229,14 @@ public class GoodController : ApiController
224
229
</Parameters>
225
230
<Docs>
226
231
<paramname="handler">The HTTP handler stack to use for sending requests.</param>
227
-
<summary>Initializes a new instance of the <seecref="T:System.Net.Http.HttpClient" /> class with a specific handler.</summary>
232
+
<summary>Initializes a new instance of the <seecref="T:System.Net.Http.HttpClient" /> class with the specified handler. The handler is disposed when this instance is disposed.</summary>
228
233
<remarks>
229
-
<formattype="text/markdown"><.
233
-
234
-
]]></format>
236
+
Using this constructor is equivalent to calling the [`HttpClient(handler, true)`](xref:System.Net.Http.HttpClient.%23ctor(System.Net.Http.HttpMessageHandler,System.Boolean)) constructor.
237
+
238
+
The specified `handler` will be disposed of by calling [HttpClient.Dispose](xref:System.Net.Http.HttpMessageInvoker.Dispose).
239
+
]]></format>
235
240
</remarks>
236
241
<exceptioncref="T:System.ArgumentNullException">The <paramrefname="handler" /> is <seelangword="null" />.</exception>
237
242
</Docs>
@@ -264,8 +269,8 @@ public class GoodController : ApiController
264
269
<Docs>
265
270
<paramname="handler">The <seecref="T:System.Net.Http.HttpMessageHandler" /> responsible for processing the HTTP response messages.</param>
266
271
<paramname="disposeHandler">
267
-
<seelangword="true" /> if the inner handler should be disposed of by [HttpClient.Dispose](xref:System.Net.Http.HttpMessageInvoker.Dispose), <seelangword="false" /> if you intend to reuse the inner handler.</param>
268
-
<summary>Initializes a new instance of the <seecref="T:System.Net.Http.HttpClient" /> class with a specific handler.</summary>
272
+
<seelangword="true" /> if the inner handler should be disposed of by [HttpClient.Dispose](xref:System.Net.Http.HttpMessageInvoker.Dispose); <seelangword="false" /> if you intend to reuse the inner handler.</param>
273
+
<summary>Initializes a new instance of the <seecref="T:System.Net.Http.HttpClient" /> class with the provided handler, and specifies whether that handler should be disposed when this instance is disposed.</summary>
269
274
<remarks>To be added.</remarks>
270
275
<exceptioncref="T:System.ArgumentNullException">The <paramrefname="handler" /> is <seelangword="null" />.</exception>
0 commit comments