1331 lines
79 KiB
XML
1331 lines
79 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Type Name="HttpClient" FullName="System.Net.Http.HttpClient">
|
|
<TypeSignature Language="C#" Value="public class HttpClient : System.Net.Http.HttpMessageInvoker" />
|
|
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit HttpClient extends System.Net.Http.HttpMessageInvoker" />
|
|
<AssemblyInfo>
|
|
<AssemblyName>System.Net.Http</AssemblyName>
|
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<Base>
|
|
<BaseTypeName>System.Net.Http.HttpMessageInvoker</BaseTypeName>
|
|
</Base>
|
|
<Interfaces />
|
|
<Docs>
|
|
<remarks>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>The <see cref="T:System.Net.Http.HttpClient" /> class instance acts as a session to send HTTP requests. An <see cref="T:System.Net.Http.HttpClient" /> instance is a collection of settings applied to all requests executed by that instance. In addition, every <see cref="T:System.Net.Http.HttpClient" /> instance uses its own connection pool, isolating its requests from requests executed by other <see cref="T:System.Net.Http.HttpClient" /> instances.</para>
|
|
<para>The <see cref="T:System.Net.Http.HttpClient" /> also acts as a base class for more specific HTTP clients. An example would be a FacebookHttpClient providing additional methods specific to a Facebook web service (a GetFriends method, for instance).</para>
|
|
<para>By default, <see cref="T:System.Net.HttpWebRequest" /> will be used to send requests to the server. This behavior can be modified by specifying a different channel in one of the constructor overloads taking a <see cref="T:System.Net.Http.HttpMessageHandler" /> instance as parameter. If features like authentication or caching are required, <see cref="T:System.Net.Http.WebRequestHandler" /> can be used to configure settings and the instance can be passed to the constructor. The returned handler can be passed to one of the constructor overloads taking a <see cref="T:System.Net.Http.HttpMessageHandler" /> parameter. </para>
|
|
<para>If an app using <see cref="T:System.Net.Http.HttpClient" /> and related classes in the <see cref="N:System.Net.Http" /> namespace intends to download large amounts of data (50 megabytes or more), then the app should stream those downloads and not use the default buffering. If the default buffering is used the client memory usage will get very large, potentially resulting in substantially reduced performance.</para>
|
|
<para>The following methods are thread safe:</para>
|
|
<list type="ordered">
|
|
<item>
|
|
<para>
|
|
<see cref="M:System.Net.Http.HttpClient.CancelPendingRequests" />
|
|
</para>
|
|
</item>
|
|
<item>
|
|
<para>
|
|
<see cref="Overload:System.Net.Http.HttpClient.DeleteAsync" />
|
|
</para>
|
|
</item>
|
|
<item>
|
|
<para>
|
|
<see cref="Overload:System.Net.Http.HttpClient.GetAsync" />
|
|
</para>
|
|
</item>
|
|
<item>
|
|
<para>
|
|
<see cref="Overload:System.Net.Http.HttpClient.GetByteArrayAsync" />
|
|
</para>
|
|
</item>
|
|
<item>
|
|
<para>
|
|
<see cref="Overload:System.Net.Http.HttpClient.GetStreamAsync" />
|
|
</para>
|
|
</item>
|
|
<item>
|
|
<para>
|
|
<see cref="Overload:System.Net.Http.HttpClient.GetStringAsync" />
|
|
</para>
|
|
</item>
|
|
<item>
|
|
<para>
|
|
<see cref="Overload:System.Net.Http.HttpClient.PostAsync" />
|
|
</para>
|
|
</item>
|
|
<item>
|
|
<para>
|
|
<see cref="Overload:System.Net.Http.HttpClient.PutAsync" />
|
|
</para>
|
|
</item>
|
|
<item>
|
|
<para>
|
|
<see cref="Overload:System.Net.Http.HttpClient.SendAsync" />
|
|
</para>
|
|
</item>
|
|
</list>
|
|
</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Provides a base class for sending HTTP requests and receiving HTTP responses from a resource identified by a URI. </para>
|
|
</summary>
|
|
</Docs>
|
|
<Members>
|
|
<Member MemberName=".ctor">
|
|
<MemberSignature Language="C#" Value="public HttpClient ();" />
|
|
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
|
|
<MemberType>Constructor</MemberType>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<Parameters />
|
|
<Docs>
|
|
<remarks>To be added.</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Initializes a new instance of the <see cref="T:System.Net.Http.HttpClient" /> class.</para>
|
|
</summary>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName=".ctor">
|
|
<MemberSignature Language="C#" Value="public HttpClient (System.Net.Http.HttpMessageHandler handler);" />
|
|
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.Net.Http.HttpMessageHandler handler) cil managed" />
|
|
<MemberType>Constructor</MemberType>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<Parameters>
|
|
<Parameter Name="handler" Type="System.Net.Http.HttpMessageHandler" />
|
|
</Parameters>
|
|
<Docs>
|
|
<remarks>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>If null is specified for <paramref name="handler" /> parameter, the <see cref="T:System.Net.Http.WebRequestHandler" /> is used as transport handler.</para>
|
|
</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Initializes a new instance of the <see cref="T:System.Net.Http.HttpClient" /> class with a specific handler.</para>
|
|
</summary>
|
|
<param name="handler">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />The HTTP handler stack to use for sending requests. </param>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName=".ctor">
|
|
<MemberSignature Language="C#" Value="public HttpClient (System.Net.Http.HttpMessageHandler handler, bool disposeHandler);" />
|
|
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.Net.Http.HttpMessageHandler handler, bool disposeHandler) cil managed" />
|
|
<MemberType>Constructor</MemberType>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<Parameters>
|
|
<Parameter Name="handler" Type="System.Net.Http.HttpMessageHandler" />
|
|
<Parameter Name="disposeHandler" Type="System.Boolean" />
|
|
</Parameters>
|
|
<Docs>
|
|
<remarks>To be added.</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Initializes a new instance of the <see cref="T:System.Net.Http.HttpClient" /> class with a specific handler.</para>
|
|
</summary>
|
|
<param name="handler">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Net.Http.HttpMessageHandler" /> responsible for processing the HTTP response messages.</param>
|
|
<param name="disposeHandler">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />true if the inner handler should be disposed of by Dispose(),false if you intend to reuse the inner handler.</param>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="BaseAddress">
|
|
<MemberSignature Language="C#" Value="public Uri BaseAddress { get; set; }" />
|
|
<MemberSignature Language="ILAsm" Value=".property instance class System.Uri BaseAddress" />
|
|
<MemberType>Property</MemberType>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<ReturnValue>
|
|
<ReturnType>System.Uri</ReturnType>
|
|
</ReturnValue>
|
|
<Docs>
|
|
<value>To be added.</value>
|
|
<remarks>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>When sending a <see cref="T:System.Net.Http.HttpRequestMessage" /> with a relative Uri, the message Uri will be added to the <see cref="P:System.Net.Http.HttpClient.BaseAddress" /> property to create an absolute Uri.</para>
|
|
</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Gets or sets the base address of Uniform Resource Identifier (URI) of the Internet resource used when sending requests.</para>
|
|
</summary>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="CancelPendingRequests">
|
|
<MemberSignature Language="C#" Value="public void CancelPendingRequests ();" />
|
|
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void CancelPendingRequests() cil managed" />
|
|
<MemberType>Method</MemberType>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<ReturnValue>
|
|
<ReturnType>System.Void</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<remarks>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>After calling this method, the <see cref="T:System.Net.Http.HttpClient" />instance can still be used to execute additional requests.</para>
|
|
</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Cancel all pending requests on this instance.</para>
|
|
</summary>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="DefaultRequestHeaders">
|
|
<MemberSignature Language="C#" Value="public System.Net.Http.Headers.HttpRequestHeaders DefaultRequestHeaders { get; }" />
|
|
<MemberSignature Language="ILAsm" Value=".property instance class System.Net.Http.Headers.HttpRequestHeaders DefaultRequestHeaders" />
|
|
<MemberType>Property</MemberType>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<ReturnValue>
|
|
<ReturnType>System.Net.Http.Headers.HttpRequestHeaders</ReturnType>
|
|
</ReturnValue>
|
|
<Docs>
|
|
<value>To be added.</value>
|
|
<remarks>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Headers set on this property don't need to be set on request messages again.</para>
|
|
</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Gets the headers which should be sent with each request.</para>
|
|
</summary>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="DeleteAsync">
|
|
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> DeleteAsync (string requestUri);" />
|
|
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task`1<class System.Net.Http.HttpResponseMessage> DeleteAsync(string requestUri) cil managed" />
|
|
<MemberType>Method</MemberType>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<ReturnValue>
|
|
<ReturnType>System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage></ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="requestUri" Type="System.String" />
|
|
</Parameters>
|
|
<Docs>
|
|
<remarks>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>This operation will not block. The returned <see cref="T:System.Threading.Tasks.Task`1" /> object will complete after the whole response (including content) is read.</para>
|
|
</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Send a DELETE request to the specified Uri as an asynchronous operation.</para>
|
|
</summary>
|
|
<returns>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Returns <see cref="T:System.Threading.Tasks.Task`1" />.</para>
|
|
<para>The task object representing the asynchronous operation.</para>
|
|
</returns>
|
|
<param name="requestUri">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />The Uri the request is sent to.</param>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="DeleteAsync">
|
|
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> DeleteAsync (Uri requestUri);" />
|
|
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task`1<class System.Net.Http.HttpResponseMessage> DeleteAsync(class System.Uri requestUri) cil managed" />
|
|
<MemberType>Method</MemberType>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<ReturnValue>
|
|
<ReturnType>System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage></ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="requestUri" Type="System.Uri" />
|
|
</Parameters>
|
|
<Docs>
|
|
<remarks>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>This operation will not block. The returned <see cref="T:System.Threading.Tasks.Task`1" /> object will complete after the whole response (including content) is read.</para>
|
|
</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Send a DELETE request to the specified Uri as an asynchronous operation.</para>
|
|
</summary>
|
|
<returns>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Returns <see cref="T:System.Threading.Tasks.Task`1" />.</para>
|
|
<para>The task object representing the asynchronous operation.</para>
|
|
</returns>
|
|
<param name="requestUri">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />The Uri the request is sent to.</param>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="DeleteAsync">
|
|
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> DeleteAsync (string requestUri, System.Threading.CancellationToken cancellationToken);" />
|
|
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task`1<class System.Net.Http.HttpResponseMessage> DeleteAsync(string requestUri, valuetype System.Threading.CancellationToken cancellationToken) cil managed" />
|
|
<MemberType>Method</MemberType>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<ReturnValue>
|
|
<ReturnType>System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage></ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="requestUri" Type="System.String" />
|
|
<Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" />
|
|
</Parameters>
|
|
<Docs>
|
|
<remarks>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>This operation will not block. The returned <see cref="T:System.Threading.Tasks.Task`1" /> object will complete after the whole response (including content) is read.</para>
|
|
</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Send a DELETE request to the specified Uri with a cancellation token as an asynchronous operation.</para>
|
|
</summary>
|
|
<returns>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Returns <see cref="T:System.Threading.Tasks.Task`1" />.</para>
|
|
<para>The task object representing the asynchronous operation.</para>
|
|
</returns>
|
|
<param name="requestUri">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />The Uri the request is sent to.</param>
|
|
<param name="cancellationToken">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />A cancellation token that can be used by other objects or threads to receive notice of cancellation.</param>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="DeleteAsync">
|
|
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> DeleteAsync (Uri requestUri, System.Threading.CancellationToken cancellationToken);" />
|
|
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task`1<class System.Net.Http.HttpResponseMessage> DeleteAsync(class System.Uri requestUri, valuetype System.Threading.CancellationToken cancellationToken) cil managed" />
|
|
<MemberType>Method</MemberType>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<ReturnValue>
|
|
<ReturnType>System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage></ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="requestUri" Type="System.Uri" />
|
|
<Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" />
|
|
</Parameters>
|
|
<Docs>
|
|
<remarks>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>This operation will not block. The returned <see cref="T:System.Threading.Tasks.Task`1" /> object will complete after the whole response (including content) is read.</para>
|
|
</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Send a DELETE request to the specified Uri with a cancellation token as an asynchronous operation.</para>
|
|
</summary>
|
|
<returns>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Returns <see cref="T:System.Threading.Tasks.Task`1" />.</para>
|
|
<para>The task object representing the asynchronous operation.</para>
|
|
</returns>
|
|
<param name="requestUri">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />The Uri the request is sent to.</param>
|
|
<param name="cancellationToken">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />A cancellation token that can be used by other objects or threads to receive notice of cancellation.</param>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="Dispose">
|
|
<MemberSignature Language="C#" Value="protected override void Dispose (bool disposing);" />
|
|
<MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance void Dispose(bool disposing) cil managed" />
|
|
<MemberType>Method</MemberType>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<ReturnValue>
|
|
<ReturnType>System.Void</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="disposing" Type="System.Boolean" />
|
|
</Parameters>
|
|
<Docs>
|
|
<remarks>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>This method is called by the public Dispose() method and the <see cref="M:System.Object.Finalize" /> method. Dispose() invokes the protected Dispose(Boolean) method with the <paramref name="disposing" /> parameter set to true. <see cref="M:System.Object.Finalize" /> invokes Dispose with <paramref name="disposing" /> set to false.</para>
|
|
<para>When the <paramref name="disposing" /> parameter is true, this method releases all resources held by any managed objects that this <see cref="T:System.Net.Http.HttpClient" /> references. This method invokes the Dispose() method of each referenced object.</para>
|
|
<para>When this method is called, the <see cref="M:System.Net.Http.HttpClient.CancelPendingRequests" /> method is called to abort all pending requests.</para>
|
|
</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Releases the unmanaged resources used by the <see cref="T:System.Net.Http.HttpClient" /> and optionally disposes of the managed resources.</para>
|
|
</summary>
|
|
<param name="disposing">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />true to release both managed and unmanaged resources; false to releases only unmanaged resources.</param>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="GetAsync">
|
|
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> GetAsync (string requestUri);" />
|
|
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task`1<class System.Net.Http.HttpResponseMessage> GetAsync(string requestUri) cil managed" />
|
|
<MemberType>Method</MemberType>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<ReturnValue>
|
|
<ReturnType>System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage></ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="requestUri" Type="System.String" />
|
|
</Parameters>
|
|
<Docs>
|
|
<remarks>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>This operation will not block. The returned <see cref="T:System.Threading.Tasks.Task`1" /> object will complete after the whole response (including content) is read.</para>
|
|
</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Send a GET request to the specified Uri as an asynchronous operation.</para>
|
|
</summary>
|
|
<returns>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Returns <see cref="T:System.Threading.Tasks.Task`1" />.</para>
|
|
<para>The task object representing the asynchronous operation.</para>
|
|
</returns>
|
|
<param name="requestUri">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />The Uri the request is sent to.</param>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="GetAsync">
|
|
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> GetAsync (Uri requestUri);" />
|
|
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task`1<class System.Net.Http.HttpResponseMessage> GetAsync(class System.Uri requestUri) cil managed" />
|
|
<MemberType>Method</MemberType>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<ReturnValue>
|
|
<ReturnType>System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage></ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="requestUri" Type="System.Uri" />
|
|
</Parameters>
|
|
<Docs>
|
|
<remarks>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>This operation will not block. The returned <see cref="T:System.Threading.Tasks.Task`1" /> object will complete after the whole response (including content) is read.</para>
|
|
</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Send a GET request to the specified Uri as an asynchronous operation.</para>
|
|
</summary>
|
|
<returns>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Returns <see cref="T:System.Threading.Tasks.Task`1" />.</para>
|
|
<para>The task object representing the asynchronous operation.</para>
|
|
</returns>
|
|
<param name="requestUri">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />The Uri the request is sent to.</param>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="GetAsync">
|
|
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> GetAsync (string requestUri, System.Net.Http.HttpCompletionOption completionOption);" />
|
|
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task`1<class System.Net.Http.HttpResponseMessage> GetAsync(string requestUri, valuetype System.Net.Http.HttpCompletionOption completionOption) cil managed" />
|
|
<MemberType>Method</MemberType>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<ReturnValue>
|
|
<ReturnType>System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage></ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="requestUri" Type="System.String" />
|
|
<Parameter Name="completionOption" Type="System.Net.Http.HttpCompletionOption" />
|
|
</Parameters>
|
|
<Docs>
|
|
<remarks>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>This operation will not block. The returned <see cref="T:System.Threading.Tasks.Task`1" /> object will complete based on the <paramref name="completionOption" /> parameter after the part or all of the response (including content) is read.</para>
|
|
</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Send a GET request to the specified Uri with an HTTP completion option as an asynchronous operation.</para>
|
|
</summary>
|
|
<returns>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Returns <see cref="T:System.Threading.Tasks.Task`1" />.</para>
|
|
</returns>
|
|
<param name="requestUri">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />The Uri the request is sent to.</param>
|
|
<param name="completionOption">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />An HTTP completion option value that indicates when the operation should be considered completed.</param>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="GetAsync">
|
|
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> GetAsync (string requestUri, System.Threading.CancellationToken cancellationToken);" />
|
|
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task`1<class System.Net.Http.HttpResponseMessage> GetAsync(string requestUri, valuetype System.Threading.CancellationToken cancellationToken) cil managed" />
|
|
<MemberType>Method</MemberType>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<ReturnValue>
|
|
<ReturnType>System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage></ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="requestUri" Type="System.String" />
|
|
<Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" />
|
|
</Parameters>
|
|
<Docs>
|
|
<remarks>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>This operation will not block. The returned <see cref="T:System.Threading.Tasks.Task`1" /> object will complete after the whole response (including content) is read.</para>
|
|
</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Send a GET request to the specified Uri with a cancellation token as an asynchronous operation.</para>
|
|
</summary>
|
|
<returns>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Returns <see cref="T:System.Threading.Tasks.Task`1" />.</para>
|
|
</returns>
|
|
<param name="requestUri">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />The Uri the request is sent to.</param>
|
|
<param name="cancellationToken">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />A cancellation token that can be used by other objects or threads to receive notice of cancellation.</param>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="GetAsync">
|
|
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> GetAsync (Uri requestUri, System.Net.Http.HttpCompletionOption completionOption);" />
|
|
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task`1<class System.Net.Http.HttpResponseMessage> GetAsync(class System.Uri requestUri, valuetype System.Net.Http.HttpCompletionOption completionOption) cil managed" />
|
|
<MemberType>Method</MemberType>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<ReturnValue>
|
|
<ReturnType>System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage></ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="requestUri" Type="System.Uri" />
|
|
<Parameter Name="completionOption" Type="System.Net.Http.HttpCompletionOption" />
|
|
</Parameters>
|
|
<Docs>
|
|
<remarks>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>This operation will not block. The returned <see cref="T:System.Threading.Tasks.Task`1" /> object will complete based on the <paramref name="completionOption" /> parameter after the part or all of the response (including content) is read.</para>
|
|
</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Send a GET request to the specified Uri with an HTTP completion option as an asynchronous operation.</para>
|
|
</summary>
|
|
<returns>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Returns <see cref="T:System.Threading.Tasks.Task`1" />.</para>
|
|
<para>The task object representing the asynchronous operation.</para>
|
|
</returns>
|
|
<param name="requestUri">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />The Uri the request is sent to.</param>
|
|
<param name="completionOption">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />An HTTP completion option value that indicates when the operation should be considered completed.</param>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="GetAsync">
|
|
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> GetAsync (Uri requestUri, System.Threading.CancellationToken cancellationToken);" />
|
|
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task`1<class System.Net.Http.HttpResponseMessage> GetAsync(class System.Uri requestUri, valuetype System.Threading.CancellationToken cancellationToken) cil managed" />
|
|
<MemberType>Method</MemberType>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<ReturnValue>
|
|
<ReturnType>System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage></ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="requestUri" Type="System.Uri" />
|
|
<Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" />
|
|
</Parameters>
|
|
<Docs>
|
|
<remarks>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>This operation will not block. The returned <see cref="T:System.Threading.Tasks.Task`1" /> object will complete after the whole response (including content) is read.</para>
|
|
</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Send a GET request to the specified Uri with a cancellation token as an asynchronous operation.</para>
|
|
</summary>
|
|
<returns>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Returns <see cref="T:System.Threading.Tasks.Task`1" />.</para>
|
|
<para>The task object representing the asynchronous operation.</para>
|
|
</returns>
|
|
<param name="requestUri">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />The Uri the request is sent to.</param>
|
|
<param name="cancellationToken">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />A cancellation token that can be used by other objects or threads to receive notice of cancellation.</param>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="GetAsync">
|
|
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> GetAsync (string requestUri, System.Net.Http.HttpCompletionOption completionOption, System.Threading.CancellationToken cancellationToken);" />
|
|
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task`1<class System.Net.Http.HttpResponseMessage> GetAsync(string requestUri, valuetype System.Net.Http.HttpCompletionOption completionOption, valuetype System.Threading.CancellationToken cancellationToken) cil managed" />
|
|
<MemberType>Method</MemberType>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<ReturnValue>
|
|
<ReturnType>System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage></ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="requestUri" Type="System.String" />
|
|
<Parameter Name="completionOption" Type="System.Net.Http.HttpCompletionOption" />
|
|
<Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" />
|
|
</Parameters>
|
|
<Docs>
|
|
<remarks>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>This operation will not block. The returned <see cref="T:System.Threading.Tasks.Task`1" /> object will complete based on the <paramref name="completionOption" /> parameter after the part or all of the response (including content) is read.</para>
|
|
</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Send a GET request to the specified Uri with an HTTP completion option and a cancellation token as an asynchronous operation.</para>
|
|
</summary>
|
|
<returns>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Returns <see cref="T:System.Threading.Tasks.Task`1" />.</para>
|
|
</returns>
|
|
<param name="requestUri">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />The Uri the request is sent to.</param>
|
|
<param name="completionOption">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />An HTTP completion option value that indicates when the operation should be considered completed.</param>
|
|
<param name="cancellationToken">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />A cancellation token that can be used by other objects or threads to receive notice of cancellation.</param>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="GetAsync">
|
|
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> GetAsync (Uri requestUri, System.Net.Http.HttpCompletionOption completionOption, System.Threading.CancellationToken cancellationToken);" />
|
|
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task`1<class System.Net.Http.HttpResponseMessage> GetAsync(class System.Uri requestUri, valuetype System.Net.Http.HttpCompletionOption completionOption, valuetype System.Threading.CancellationToken cancellationToken) cil managed" />
|
|
<MemberType>Method</MemberType>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<ReturnValue>
|
|
<ReturnType>System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage></ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="requestUri" Type="System.Uri" />
|
|
<Parameter Name="completionOption" Type="System.Net.Http.HttpCompletionOption" />
|
|
<Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" />
|
|
</Parameters>
|
|
<Docs>
|
|
<remarks>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>This operation will not block. The returned <see cref="T:System.Threading.Tasks.Task`1" /> object will complete based on the <paramref name="completionOption" /> parameter after the part or all of the response (including content) is read.</para>
|
|
</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Send a GET request to the specified Uri with an HTTP completion option and a cancellation token as an asynchronous operation.</para>
|
|
</summary>
|
|
<returns>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Returns <see cref="T:System.Threading.Tasks.Task`1" />.</para>
|
|
<para>The task object representing the asynchronous operation.</para>
|
|
</returns>
|
|
<param name="requestUri">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />The Uri the request is sent to.</param>
|
|
<param name="completionOption">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />An HTTP completion option value that indicates when the operation should be considered completed.</param>
|
|
<param name="cancellationToken">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />A cancellation token that can be used by other objects or threads to receive notice of cancellation.</param>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="GetByteArrayAsync">
|
|
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task<byte[]> GetByteArrayAsync (string requestUri);" />
|
|
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task`1<unsigned int8[]> GetByteArrayAsync(string requestUri) cil managed" />
|
|
<MemberType>Method</MemberType>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<Attributes>
|
|
<Attribute>
|
|
<AttributeName>System.Diagnostics.DebuggerStepThrough</AttributeName>
|
|
</Attribute>
|
|
<Attribute>
|
|
<AttributeName>System.Runtime.CompilerServices.AsyncStateMachine(typeof(System.Net.Http.HttpClient/<GetByteArrayAsync>c__async1))</AttributeName>
|
|
</Attribute>
|
|
</Attributes>
|
|
<ReturnValue>
|
|
<ReturnType>System.Threading.Tasks.Task<System.Byte[]></ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="requestUri" Type="System.String" />
|
|
</Parameters>
|
|
<Docs>
|
|
<remarks>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>This operation will not block. The returned <see cref="T:System.Threading.Tasks.Task`1" /> object will complete after the whole response body is read. </para>
|
|
</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Send a GET request to the specified Uri and return the response body as a byte array in an asynchronous operation.</para>
|
|
</summary>
|
|
<returns>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Returns <see cref="T:System.Threading.Tasks.Task`1" />.</para>
|
|
<para>The task object representing the asynchronous operation.</para>
|
|
</returns>
|
|
<param name="requestUri">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />The Uri the request is sent to.</param>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="GetByteArrayAsync">
|
|
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task<byte[]> GetByteArrayAsync (Uri requestUri);" />
|
|
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task`1<unsigned int8[]> GetByteArrayAsync(class System.Uri requestUri) cil managed" />
|
|
<MemberType>Method</MemberType>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<Attributes>
|
|
<Attribute>
|
|
<AttributeName>System.Diagnostics.DebuggerStepThrough</AttributeName>
|
|
</Attribute>
|
|
<Attribute>
|
|
<AttributeName>System.Runtime.CompilerServices.AsyncStateMachine(typeof(System.Net.Http.HttpClient/<GetByteArrayAsync>c__async2))</AttributeName>
|
|
</Attribute>
|
|
</Attributes>
|
|
<ReturnValue>
|
|
<ReturnType>System.Threading.Tasks.Task<System.Byte[]></ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="requestUri" Type="System.Uri" />
|
|
</Parameters>
|
|
<Docs>
|
|
<remarks>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>This operation will not block. The returned <see cref="T:System.Threading.Tasks.Task`1" /> object will complete after the whole response body is read.</para>
|
|
</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Send a GET request to the specified Uri and return the response body as a byte array in an asynchronous operation.</para>
|
|
</summary>
|
|
<returns>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Returns <see cref="T:System.Threading.Tasks.Task`1" />.</para>
|
|
<para>The task object representing the asynchronous operation.</para>
|
|
</returns>
|
|
<param name="requestUri">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />The Uri the request is sent to.</param>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="GetStreamAsync">
|
|
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task<System.IO.Stream> GetStreamAsync (string requestUri);" />
|
|
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task`1<class System.IO.Stream> GetStreamAsync(string requestUri) cil managed" />
|
|
<MemberType>Method</MemberType>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<Attributes>
|
|
<Attribute>
|
|
<AttributeName>System.Diagnostics.DebuggerStepThrough</AttributeName>
|
|
</Attribute>
|
|
<Attribute>
|
|
<AttributeName>System.Runtime.CompilerServices.AsyncStateMachine(typeof(System.Net.Http.HttpClient/<GetStreamAsync>c__async3))</AttributeName>
|
|
</Attribute>
|
|
</Attributes>
|
|
<ReturnValue>
|
|
<ReturnType>System.Threading.Tasks.Task<System.IO.Stream></ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="requestUri" Type="System.String" />
|
|
</Parameters>
|
|
<Docs>
|
|
<remarks>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>This operation will not block. The returned <see cref="T:System.Threading.Tasks.Task`1" /> object will complete after the whole response body is read. This method does not buffer the stream.</para>
|
|
</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Send a GET request to the specified Uri and return the response body as a stream in an asynchronous operation.</para>
|
|
</summary>
|
|
<returns>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Returns <see cref="T:System.Threading.Tasks.Task`1" />.</para>
|
|
<para>The task object representing the asynchronous operation.</para>
|
|
</returns>
|
|
<param name="requestUri">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />The Uri the request is sent to.</param>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="GetStreamAsync">
|
|
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task<System.IO.Stream> GetStreamAsync (Uri requestUri);" />
|
|
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task`1<class System.IO.Stream> GetStreamAsync(class System.Uri requestUri) cil managed" />
|
|
<MemberType>Method</MemberType>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<Attributes>
|
|
<Attribute>
|
|
<AttributeName>System.Diagnostics.DebuggerStepThrough</AttributeName>
|
|
</Attribute>
|
|
<Attribute>
|
|
<AttributeName>System.Runtime.CompilerServices.AsyncStateMachine(typeof(System.Net.Http.HttpClient/<GetStreamAsync>c__async4))</AttributeName>
|
|
</Attribute>
|
|
</Attributes>
|
|
<ReturnValue>
|
|
<ReturnType>System.Threading.Tasks.Task<System.IO.Stream></ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="requestUri" Type="System.Uri" />
|
|
</Parameters>
|
|
<Docs>
|
|
<remarks>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>This operation will not block. The returned <see cref="T:System.Threading.Tasks.Task`1" /> object will complete after the whole response body is read. This method does not buffer the stream.</para>
|
|
</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Send a GET request to the specified Uri and return the response body as a stream in an asynchronous operation.</para>
|
|
</summary>
|
|
<returns>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Returns <see cref="T:System.Threading.Tasks.Task`1" />.</para>
|
|
<para>The task object representing the asynchronous operation.</para>
|
|
</returns>
|
|
<param name="requestUri">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />The Uri the request is sent to.</param>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="GetStringAsync">
|
|
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task<string> GetStringAsync (string requestUri);" />
|
|
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task`1<string> GetStringAsync(string requestUri) cil managed" />
|
|
<MemberType>Method</MemberType>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<Attributes>
|
|
<Attribute>
|
|
<AttributeName>System.Diagnostics.DebuggerStepThrough</AttributeName>
|
|
</Attribute>
|
|
<Attribute>
|
|
<AttributeName>System.Runtime.CompilerServices.AsyncStateMachine(typeof(System.Net.Http.HttpClient/<GetStringAsync>c__async5))</AttributeName>
|
|
</Attribute>
|
|
</Attributes>
|
|
<ReturnValue>
|
|
<ReturnType>System.Threading.Tasks.Task<System.String></ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="requestUri" Type="System.String" />
|
|
</Parameters>
|
|
<Docs>
|
|
<remarks>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>This operation will not block. The returned <see cref="T:System.Threading.Tasks.Task`1" /> object will complete after the whole response body is read.</para>
|
|
</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Send a GET request to the specified Uri and return the response body as a string in an asynchronous operation.</para>
|
|
</summary>
|
|
<returns>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Returns <see cref="T:System.Threading.Tasks.Task`1" />.</para>
|
|
<para>The task object representing the asynchronous operation.</para>
|
|
</returns>
|
|
<param name="requestUri">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />The Uri the request is sent to.</param>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="GetStringAsync">
|
|
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task<string> GetStringAsync (Uri requestUri);" />
|
|
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task`1<string> GetStringAsync(class System.Uri requestUri) cil managed" />
|
|
<MemberType>Method</MemberType>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<Attributes>
|
|
<Attribute>
|
|
<AttributeName>System.Diagnostics.DebuggerStepThrough</AttributeName>
|
|
</Attribute>
|
|
<Attribute>
|
|
<AttributeName>System.Runtime.CompilerServices.AsyncStateMachine(typeof(System.Net.Http.HttpClient/<GetStringAsync>c__async6))</AttributeName>
|
|
</Attribute>
|
|
</Attributes>
|
|
<ReturnValue>
|
|
<ReturnType>System.Threading.Tasks.Task<System.String></ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="requestUri" Type="System.Uri" />
|
|
</Parameters>
|
|
<Docs>
|
|
<remarks>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>This operation will not block. The returned <see cref="T:System.Threading.Tasks.Task`1" /> object will complete after the whole response body is read.</para>
|
|
</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Send a GET request to the specified Uri and return the response body as a string in an asynchronous operation.</para>
|
|
</summary>
|
|
<returns>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Returns <see cref="T:System.Threading.Tasks.Task`1" />.</para>
|
|
<para>The task object representing the asynchronous operation.</para>
|
|
</returns>
|
|
<param name="requestUri">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />The Uri the request is sent to.</param>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="MaxResponseContentBufferSize">
|
|
<MemberSignature Language="C#" Value="public long MaxResponseContentBufferSize { get; set; }" />
|
|
<MemberSignature Language="ILAsm" Value=".property instance int64 MaxResponseContentBufferSize" />
|
|
<MemberType>Property</MemberType>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<ReturnValue>
|
|
<ReturnType>System.Int64</ReturnType>
|
|
</ReturnValue>
|
|
<Docs>
|
|
<value>To be added.</value>
|
|
<remarks>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>An app can set the <see cref="P:System.Net.Http.HttpClient.MaxResponseContentBufferSize" /> property to a lower value to limit the size of the response to buffer when reading the response. If the size of the response content is greater than the <see cref="P:System.Net.Http.HttpClient.MaxResponseContentBufferSize" /> property, an exception is thrown.</para>
|
|
</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Gets or sets the maximum number of bytes to buffer when reading the response content.</para>
|
|
</summary>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="PostAsync">
|
|
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> PostAsync (string requestUri, System.Net.Http.HttpContent content);" />
|
|
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task`1<class System.Net.Http.HttpResponseMessage> PostAsync(string requestUri, class System.Net.Http.HttpContent content) cil managed" />
|
|
<MemberType>Method</MemberType>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<ReturnValue>
|
|
<ReturnType>System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage></ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="requestUri" Type="System.String" />
|
|
<Parameter Name="content" Type="System.Net.Http.HttpContent" />
|
|
</Parameters>
|
|
<Docs>
|
|
<remarks>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>This operation will not block. The returned <see cref="T:System.Threading.Tasks.Task`1" /> object will complete after the whole response (including content) is read.</para>
|
|
</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Send a POST request to the specified Uri as an asynchronous operation.</para>
|
|
</summary>
|
|
<returns>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Returns <see cref="T:System.Threading.Tasks.Task`1" />.</para>
|
|
<para>The task object representing the asynchronous operation.</para>
|
|
</returns>
|
|
<param name="requestUri">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />The Uri the request is sent to.</param>
|
|
<param name="content">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />The HTTP request content sent to the server.</param>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="PostAsync">
|
|
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> PostAsync (Uri requestUri, System.Net.Http.HttpContent content);" />
|
|
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task`1<class System.Net.Http.HttpResponseMessage> PostAsync(class System.Uri requestUri, class System.Net.Http.HttpContent content) cil managed" />
|
|
<MemberType>Method</MemberType>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<ReturnValue>
|
|
<ReturnType>System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage></ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="requestUri" Type="System.Uri" />
|
|
<Parameter Name="content" Type="System.Net.Http.HttpContent" />
|
|
</Parameters>
|
|
<Docs>
|
|
<remarks>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>This operation will not block. The returned <see cref="T:System.Threading.Tasks.Task`1" /> object will complete after the whole response (including content) is read.</para>
|
|
</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Send a POST request to the specified Uri as an asynchronous operation.</para>
|
|
</summary>
|
|
<returns>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Returns <see cref="T:System.Threading.Tasks.Task`1" />.</para>
|
|
<para>The task object representing the asynchronous operation.</para>
|
|
</returns>
|
|
<param name="requestUri">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />The Uri the request is sent to.</param>
|
|
<param name="content">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />The HTTP request content sent to the server.</param>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="PostAsync">
|
|
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> PostAsync (string requestUri, System.Net.Http.HttpContent content, System.Threading.CancellationToken cancellationToken);" />
|
|
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task`1<class System.Net.Http.HttpResponseMessage> PostAsync(string requestUri, class System.Net.Http.HttpContent content, valuetype System.Threading.CancellationToken cancellationToken) cil managed" />
|
|
<MemberType>Method</MemberType>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<ReturnValue>
|
|
<ReturnType>System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage></ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="requestUri" Type="System.String" />
|
|
<Parameter Name="content" Type="System.Net.Http.HttpContent" />
|
|
<Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" />
|
|
</Parameters>
|
|
<Docs>
|
|
<remarks>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>This operation will not block. The returned <see cref="T:System.Threading.Tasks.Task`1" /> object will complete after the whole response (including content) is read.</para>
|
|
</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Send a POST request with a cancellation token as an asynchronous operation.</para>
|
|
</summary>
|
|
<returns>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Returns <see cref="T:System.Threading.Tasks.Task`1" />.</para>
|
|
<para>The task object representing the asynchronous operation.</para>
|
|
</returns>
|
|
<param name="requestUri">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />The Uri the request is sent to.</param>
|
|
<param name="content">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />The HTTP request content sent to the server.</param>
|
|
<param name="cancellationToken">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />A cancellation token that can be used by other objects or threads to receive notice of cancellation.</param>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="PostAsync">
|
|
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> PostAsync (Uri requestUri, System.Net.Http.HttpContent content, System.Threading.CancellationToken cancellationToken);" />
|
|
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task`1<class System.Net.Http.HttpResponseMessage> PostAsync(class System.Uri requestUri, class System.Net.Http.HttpContent content, valuetype System.Threading.CancellationToken cancellationToken) cil managed" />
|
|
<MemberType>Method</MemberType>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<ReturnValue>
|
|
<ReturnType>System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage></ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="requestUri" Type="System.Uri" />
|
|
<Parameter Name="content" Type="System.Net.Http.HttpContent" />
|
|
<Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" />
|
|
</Parameters>
|
|
<Docs>
|
|
<remarks>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>This operation will not block. The returned <see cref="T:System.Threading.Tasks.Task`1" /> object will complete after the whole response (including content) is read.</para>
|
|
</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Send a POST request with a cancellation token as an asynchronous operation.</para>
|
|
</summary>
|
|
<returns>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Returns <see cref="T:System.Threading.Tasks.Task`1" />.</para>
|
|
<para>The task object representing the asynchronous operation.</para>
|
|
</returns>
|
|
<param name="requestUri">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />The Uri the request is sent to.</param>
|
|
<param name="content">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />The HTTP request content sent to the server.</param>
|
|
<param name="cancellationToken">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />A cancellation token that can be used by other objects or threads to receive notice of cancellation.</param>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="PutAsync">
|
|
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> PutAsync (string requestUri, System.Net.Http.HttpContent content);" />
|
|
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task`1<class System.Net.Http.HttpResponseMessage> PutAsync(string requestUri, class System.Net.Http.HttpContent content) cil managed" />
|
|
<MemberType>Method</MemberType>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<ReturnValue>
|
|
<ReturnType>System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage></ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="requestUri" Type="System.String" />
|
|
<Parameter Name="content" Type="System.Net.Http.HttpContent" />
|
|
</Parameters>
|
|
<Docs>
|
|
<remarks>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>This operation will not block. The returned <see cref="T:System.Threading.Tasks.Task`1" /> object will complete after the whole response (including content) is read.</para>
|
|
</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Send a PUT request to the specified Uri as an asynchronous operation.</para>
|
|
</summary>
|
|
<returns>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Returns <see cref="T:System.Threading.Tasks.Task`1" />.</para>
|
|
<para>The task object representing the asynchronous operation.</para>
|
|
</returns>
|
|
<param name="requestUri">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />The Uri the request is sent to.</param>
|
|
<param name="content">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />The HTTP request content sent to the server.</param>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="PutAsync">
|
|
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> PutAsync (Uri requestUri, System.Net.Http.HttpContent content);" />
|
|
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task`1<class System.Net.Http.HttpResponseMessage> PutAsync(class System.Uri requestUri, class System.Net.Http.HttpContent content) cil managed" />
|
|
<MemberType>Method</MemberType>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<ReturnValue>
|
|
<ReturnType>System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage></ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="requestUri" Type="System.Uri" />
|
|
<Parameter Name="content" Type="System.Net.Http.HttpContent" />
|
|
</Parameters>
|
|
<Docs>
|
|
<remarks>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>This operation will not block. The returned <see cref="T:System.Threading.Tasks.Task`1" /> object will complete after the whole response (including content) is read.</para>
|
|
</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Send a PUT request to the specified Uri as an asynchronous operation.</para>
|
|
</summary>
|
|
<returns>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Returns <see cref="T:System.Threading.Tasks.Task`1" />.</para>
|
|
<para>The task object representing the asynchronous operation.</para>
|
|
</returns>
|
|
<param name="requestUri">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />The Uri the request is sent to.</param>
|
|
<param name="content">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />The HTTP request content sent to the server.</param>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="PutAsync">
|
|
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> PutAsync (string requestUri, System.Net.Http.HttpContent content, System.Threading.CancellationToken cancellationToken);" />
|
|
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task`1<class System.Net.Http.HttpResponseMessage> PutAsync(string requestUri, class System.Net.Http.HttpContent content, valuetype System.Threading.CancellationToken cancellationToken) cil managed" />
|
|
<MemberType>Method</MemberType>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<ReturnValue>
|
|
<ReturnType>System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage></ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="requestUri" Type="System.String" />
|
|
<Parameter Name="content" Type="System.Net.Http.HttpContent" />
|
|
<Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" />
|
|
</Parameters>
|
|
<Docs>
|
|
<remarks>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>This operation will not block. The returned <see cref="T:System.Threading.Tasks.Task`1" /> object will complete after the whole response (including content) is read.</para>
|
|
</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Send a PUT request with a cancellation token as an asynchronous operation.</para>
|
|
</summary>
|
|
<returns>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Returns <see cref="T:System.Threading.Tasks.Task`1" />.</para>
|
|
<para>The task object representing the asynchronous operation.</para>
|
|
</returns>
|
|
<param name="requestUri">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />The Uri the request is sent to.</param>
|
|
<param name="content">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />The HTTP request content sent to the server.</param>
|
|
<param name="cancellationToken">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />A cancellation token that can be used by other objects or threads to receive notice of cancellation.</param>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="PutAsync">
|
|
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> PutAsync (Uri requestUri, System.Net.Http.HttpContent content, System.Threading.CancellationToken cancellationToken);" />
|
|
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task`1<class System.Net.Http.HttpResponseMessage> PutAsync(class System.Uri requestUri, class System.Net.Http.HttpContent content, valuetype System.Threading.CancellationToken cancellationToken) cil managed" />
|
|
<MemberType>Method</MemberType>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<ReturnValue>
|
|
<ReturnType>System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage></ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="requestUri" Type="System.Uri" />
|
|
<Parameter Name="content" Type="System.Net.Http.HttpContent" />
|
|
<Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" />
|
|
</Parameters>
|
|
<Docs>
|
|
<remarks>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>This operation will not block. The returned <see cref="T:System.Threading.Tasks.Task`1" /> object will complete after the whole response (including content) is read.</para>
|
|
</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Send a PUT request with a cancellation token as an asynchronous operation.</para>
|
|
</summary>
|
|
<returns>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Returns <see cref="T:System.Threading.Tasks.Task`1" />.</para>
|
|
<para>The task object representing the asynchronous operation.</para>
|
|
</returns>
|
|
<param name="requestUri">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />The Uri the request is sent to.</param>
|
|
<param name="content">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />The HTTP request content sent to the server.</param>
|
|
<param name="cancellationToken">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />A cancellation token that can be used by other objects or threads to receive notice of cancellation.</param>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="SendAsync">
|
|
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> SendAsync (System.Net.Http.HttpRequestMessage request);" />
|
|
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task`1<class System.Net.Http.HttpResponseMessage> SendAsync(class System.Net.Http.HttpRequestMessage request) cil managed" />
|
|
<MemberType>Method</MemberType>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<ReturnValue>
|
|
<ReturnType>System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage></ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="request" Type="System.Net.Http.HttpRequestMessage" />
|
|
</Parameters>
|
|
<Docs>
|
|
<remarks>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>This operation will not block. The returned <see cref="T:System.Threading.Tasks.Task`1" /> object will complete once the entire response including content is read.</para>
|
|
</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Send an HTTP request as an asynchronous operation.</para>
|
|
</summary>
|
|
<returns>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Returns <see cref="T:System.Threading.Tasks.Task`1" />.</para>
|
|
<para>The task object representing the asynchronous operation.</para>
|
|
</returns>
|
|
<param name="request">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />The HTTP request message to send.</param>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="SendAsync">
|
|
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> SendAsync (System.Net.Http.HttpRequestMessage request, System.Net.Http.HttpCompletionOption completionOption);" />
|
|
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task`1<class System.Net.Http.HttpResponseMessage> SendAsync(class System.Net.Http.HttpRequestMessage request, valuetype System.Net.Http.HttpCompletionOption completionOption) cil managed" />
|
|
<MemberType>Method</MemberType>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<ReturnValue>
|
|
<ReturnType>System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage></ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="request" Type="System.Net.Http.HttpRequestMessage" />
|
|
<Parameter Name="completionOption" Type="System.Net.Http.HttpCompletionOption" />
|
|
</Parameters>
|
|
<Docs>
|
|
<remarks>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>This operation will not block. Depending on the value of the <paramref name="completionOption" /> parameter, the returned <see cref="T:System.Threading.Tasks.Task`1" /> object will complete as soon as a response is available or the entire response including content is read.</para>
|
|
</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Send an HTTP request as an asynchronous operation. </para>
|
|
</summary>
|
|
<returns>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Returns <see cref="T:System.Threading.Tasks.Task`1" />.</para>
|
|
<para>The task object representing the asynchronous operation.</para>
|
|
</returns>
|
|
<param name="request">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />The HTTP request message to send.</param>
|
|
<param name="completionOption">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />When the operation should complete (as soon as a response is available or after reading the whole response content).</param>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="SendAsync">
|
|
<MemberSignature Language="C#" Value="public override System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken);" />
|
|
<MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance class System.Threading.Tasks.Task`1<class System.Net.Http.HttpResponseMessage> SendAsync(class System.Net.Http.HttpRequestMessage request, valuetype System.Threading.CancellationToken cancellationToken) cil managed" />
|
|
<MemberType>Method</MemberType>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<ReturnValue>
|
|
<ReturnType>System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage></ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="request" Type="System.Net.Http.HttpRequestMessage" />
|
|
<Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" />
|
|
</Parameters>
|
|
<Docs>
|
|
<remarks>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>This operation will not block. The returned <see cref="T:System.Threading.Tasks.Task`1" /> object will complete once the entire response including content is read.</para>
|
|
</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Send an HTTP request as an asynchronous operation.</para>
|
|
</summary>
|
|
<returns>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Returns <see cref="T:System.Threading.Tasks.Task`1" />.</para>
|
|
<para>The task object representing the asynchronous operation.</para>
|
|
</returns>
|
|
<param name="request">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />The HTTP request message to send.</param>
|
|
<param name="cancellationToken">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />The cancellation token to cancel operation.</param>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="SendAsync">
|
|
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> SendAsync (System.Net.Http.HttpRequestMessage request, System.Net.Http.HttpCompletionOption completionOption, System.Threading.CancellationToken cancellationToken);" />
|
|
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task`1<class System.Net.Http.HttpResponseMessage> SendAsync(class System.Net.Http.HttpRequestMessage request, valuetype System.Net.Http.HttpCompletionOption completionOption, valuetype System.Threading.CancellationToken cancellationToken) cil managed" />
|
|
<MemberType>Method</MemberType>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<ReturnValue>
|
|
<ReturnType>System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage></ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="request" Type="System.Net.Http.HttpRequestMessage" />
|
|
<Parameter Name="completionOption" Type="System.Net.Http.HttpCompletionOption" />
|
|
<Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" />
|
|
</Parameters>
|
|
<Docs>
|
|
<remarks>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>This operation will not block. Depending on the value of the <paramref name="completionOption" /> parameter, the returned <see cref="T:System.Threading.Tasks.Task`1" /> object will complete as soon as a response is available or the entire response including content is read.</para>
|
|
</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Send an HTTP request as an asynchronous operation.</para>
|
|
</summary>
|
|
<returns>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Returns <see cref="T:System.Threading.Tasks.Task`1" />.</para>
|
|
<para>The task object representing the asynchronous operation.</para>
|
|
</returns>
|
|
<param name="request">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />The HTTP request message to send.</param>
|
|
<param name="completionOption">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />When the operation should complete (as soon as a response is available or after reading the whole response content).</param>
|
|
<param name="cancellationToken">
|
|
<attribution license="cc4" from="Microsoft" modified="false" />The cancellation token to cancel operation.</param>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="Timeout">
|
|
<MemberSignature Language="C#" Value="public TimeSpan Timeout { get; set; }" />
|
|
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.TimeSpan Timeout" />
|
|
<MemberType>Property</MemberType>
|
|
<AssemblyInfo>
|
|
<AssemblyVersion>4.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<ReturnValue>
|
|
<ReturnType>System.TimeSpan</ReturnType>
|
|
</ReturnValue>
|
|
<Docs>
|
|
<value>To be added.</value>
|
|
<remarks>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>The default value is 100,000 milliseconds (100 seconds). </para>
|
|
<para>A Domain Name System (DNS) query may take up to 15 seconds to return or time out. If your request contains a host name that requires resolution and you set <see cref="P:System.Net.Http.HttpClient.Timeout" /> to a value less than 15 seconds, it may take 15 seconds or more before a <see cref="T:System.Net.WebException" /> is thrown to indicate a timeout on your request.</para>
|
|
<para>The same timeout will apply for all requests using this <see cref="T:System.Net.Http.HttpClient" /> instance. You may also set different timeouts for individual requests using a <see cref="T:System.Threading.CancellationTokenSource" /> on a task. Note that only the shorter of the two timeouts will apply.</para>
|
|
</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Gets or sets the number of milliseconds to wait before the request times out.</para>
|
|
</summary>
|
|
</Docs>
|
|
</Member>
|
|
</Members>
|
|
</Type> |