TfvcHttpClient.SendAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SendAsync<T>(HttpMethod, Guid, Object, ApiResourceVersion, HttpContent, IEnumerable<KeyValuePair<String,String>>, Object, CancellationToken, Func<HttpResponseMessage,CancellationToken,Task<T>>)
protected System.Threading.Tasks.Task<T> SendAsync<T>(System.Net.Http.HttpMethod method, Guid locationId, object routeValues = null, Microsoft.VisualStudio.Services.WebApi.ApiResourceVersion version = null, System.Net.Http.HttpContent content = null, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,string>> queryParameters = null, object userState = null, System.Threading.CancellationToken cancellationToken = null, Func<System.Net.Http.HttpResponseMessage,System.Threading.CancellationToken,System.Threading.Tasks.Task<T>> processResponse = null);
override this.SendAsync : System.Net.Http.HttpMethod * Guid * obj * Microsoft.VisualStudio.Services.WebApi.ApiResourceVersion * System.Net.Http.HttpContent * seq<System.Collections.Generic.KeyValuePair<string, string>> * obj * System.Threading.CancellationToken * Func<System.Net.Http.HttpResponseMessage, System.Threading.CancellationToken, System.Threading.Tasks.Task<'T>> -> System.Threading.Tasks.Task<'T>
Type Parameters
- T
Parameters
- method
- HttpMethod
- locationId
- Guid
- routeValues
- Object
- version
- Microsoft.VisualStudio.Services.WebApi.ApiResourceVersion
- content
- HttpContent
- queryParameters
- IEnumerable<KeyValuePair<String,String>>
- userState
- Object
- cancellationToken
- CancellationToken
- processResponse
- Func<HttpResponseMessage,CancellationToken,Task<T>>
Returns
Applies to
SendAsync<T>(HttpRequestMessage, Object, CancellationToken, Func<HttpResponseMessage,CancellationToken,Task<T>>)
protected System.Threading.Tasks.Task<T> SendAsync<T>(System.Net.Http.HttpRequestMessage message, object userState = null, System.Threading.CancellationToken cancellationToken = null, Func<System.Net.Http.HttpResponseMessage,System.Threading.CancellationToken,System.Threading.Tasks.Task<T>> processResponse = null);
override this.SendAsync : System.Net.Http.HttpRequestMessage * obj * System.Threading.CancellationToken * Func<System.Net.Http.HttpResponseMessage, System.Threading.CancellationToken, System.Threading.Tasks.Task<'T>> -> System.Threading.Tasks.Task<'T>
Type Parameters
- T
Parameters
- message
- HttpRequestMessage
- userState
- Object
- cancellationToken
- CancellationToken
- processResponse
- Func<HttpResponseMessage,CancellationToken,Task<T>>
Returns
Applies to
SendAsync<T>(HttpMethod, IEnumerable<KeyValuePair<String,String>>, Guid, Object, ApiResourceVersion, HttpContent, IEnumerable<KeyValuePair<String, String>>, Object, CancellationToken, Func<HttpResponseMessage, CancellationToken,Task<T>>)
protected System.Threading.Tasks.Task<T> SendAsync<T>(System.Net.Http.HttpMethod method, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,string>> additionalHeaders, Guid locationId, object routeValues = null, Microsoft.VisualStudio.Services.WebApi.ApiResourceVersion version = null, System.Net.Http.HttpContent content = null, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,string>> queryParameters = null, object userState = null, System.Threading.CancellationToken cancellationToken = null, Func<System.Net.Http.HttpResponseMessage,System.Threading.CancellationToken,System.Threading.Tasks.Task<T>> processResponse = null);
override this.SendAsync : System.Net.Http.HttpMethod * seq<System.Collections.Generic.KeyValuePair<string, string>> * Guid * obj * Microsoft.VisualStudio.Services.WebApi.ApiResourceVersion * System.Net.Http.HttpContent * seq<System.Collections.Generic.KeyValuePair<string, string>> * obj * System.Threading.CancellationToken * Func<System.Net.Http.HttpResponseMessage, System.Threading.CancellationToken, System.Threading.Tasks.Task<'T>> -> System.Threading.Tasks.Task<'T>
Type Parameters
- T
Parameters
- method
- HttpMethod
- additionalHeaders
- IEnumerable<KeyValuePair<String,String>>
- locationId
- Guid
- routeValues
- Object
- version
- Microsoft.VisualStudio.Services.WebApi.ApiResourceVersion
- content
- HttpContent
- queryParameters
- IEnumerable<KeyValuePair<String,String>>
- userState
- Object
- cancellationToken
- CancellationToken
- processResponse
- Func<HttpResponseMessage,CancellationToken,Task<T>>