Share via


ResourceManagerRestClientBase.SendRequestAsync Method

Definition

Overloads

SendRequestAsync(HttpRequestMessage, CancellationToken)

Sends an HTTP request message and returns the result.

SendRequestAsync(HttpMethod, Uri, CancellationToken)

Sends an HTTP request message and returns the result.

SendRequestAsync(HttpMethod, Uri, JToken, CancellationToken)

Sends an HTTP request message and returns the result.

SendRequestAsync<TResponseType>(HttpMethod, Uri, CancellationToken)

Sends an HTTP request message and returns the result.

SendRequestAsync<TResponseType>(HttpMethod, Uri, JObject, CancellationToken)

Sends an HTTP request message and returns the result from the content of the response message.

SendRequestAsync(HttpRequestMessage, CancellationToken)

Sends an HTTP request message and returns the result.

protected System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> SendRequestAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken);
member this.SendRequestAsync : System.Net.Http.HttpRequestMessage * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage>
Protected Function SendRequestAsync (request As HttpRequestMessage, cancellationToken As CancellationToken) As Task(Of HttpResponseMessage)

Parameters

request
HttpRequestMessage

The http request to send.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to

SendRequestAsync(HttpMethod, Uri, CancellationToken)

Sends an HTTP request message and returns the result.

protected System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> SendRequestAsync (System.Net.Http.HttpMethod httpMethod, Uri requestUri, System.Threading.CancellationToken cancellationToken);
member this.SendRequestAsync : System.Net.Http.HttpMethod * Uri * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage>
Protected Function SendRequestAsync (httpMethod As HttpMethod, requestUri As Uri, cancellationToken As CancellationToken) As Task(Of HttpResponseMessage)

Parameters

httpMethod
HttpMethod

The http method to use.

requestUri
Uri

The Uri of the operation.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to

SendRequestAsync(HttpMethod, Uri, JToken, CancellationToken)

Sends an HTTP request message and returns the result.

protected System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> SendRequestAsync (System.Net.Http.HttpMethod httpMethod, Uri requestUri, Newtonsoft.Json.Linq.JToken content, System.Threading.CancellationToken cancellationToken);
member this.SendRequestAsync : System.Net.Http.HttpMethod * Uri * Newtonsoft.Json.Linq.JToken * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage>
Protected Function SendRequestAsync (httpMethod As HttpMethod, requestUri As Uri, content As JToken, cancellationToken As CancellationToken) As Task(Of HttpResponseMessage)

Parameters

httpMethod
HttpMethod

The http method to use.

requestUri
Uri

The Uri of the operation.

content
Newtonsoft.Json.Linq.JToken

The content.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to

SendRequestAsync<TResponseType>(HttpMethod, Uri, CancellationToken)

Sends an HTTP request message and returns the result.

protected System.Threading.Tasks.Task<TResponseType> SendRequestAsync<TResponseType> (System.Net.Http.HttpMethod httpMethod, Uri requestUri, System.Threading.CancellationToken cancellationToken);
member this.SendRequestAsync : System.Net.Http.HttpMethod * Uri * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'ResponseType>
Protected Function SendRequestAsync(Of TResponseType) (httpMethod As HttpMethod, requestUri As Uri, cancellationToken As CancellationToken) As Task(Of TResponseType)

Type Parameters

TResponseType

The type of the result of response from the server.

Parameters

httpMethod
HttpMethod

The http method to use.

requestUri
Uri

The Uri of the operation.

cancellationToken
CancellationToken

The cancellation token.

Returns

Task<TResponseType>

Applies to

SendRequestAsync<TResponseType>(HttpMethod, Uri, JObject, CancellationToken)

Sends an HTTP request message and returns the result from the content of the response message.

protected System.Threading.Tasks.Task<TResponseType> SendRequestAsync<TResponseType> (System.Net.Http.HttpMethod httpMethod, Uri requestUri, Newtonsoft.Json.Linq.JObject content, System.Threading.CancellationToken cancellationToken);
member this.SendRequestAsync : System.Net.Http.HttpMethod * Uri * Newtonsoft.Json.Linq.JObject * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'ResponseType>
Protected Function SendRequestAsync(Of TResponseType) (httpMethod As HttpMethod, requestUri As Uri, content As JObject, cancellationToken As CancellationToken) As Task(Of TResponseType)

Type Parameters

TResponseType

The type of the result of response from the server.

Parameters

httpMethod
HttpMethod

The http method to use.

requestUri
Uri

The Uri of the operation.

content
Newtonsoft.Json.Linq.JObject

The content.

cancellationToken
CancellationToken

The cancellation token.

Returns

Task<TResponseType>

Applies to