Edit

Share via


TfvcHttpClient.SendAsync Method

Definition

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
userState
Object
cancellationToken
CancellationToken

Returns

Task<T>

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

userState
Object
cancellationToken
CancellationToken

Returns

Task<T>

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
userState
Object
cancellationToken
CancellationToken

Returns

Task<T>

Applies to