共用方式為


SimpleHttpProvider.SendAsync Method

Definition

Overloads

SendAsync(HttpRequestMessage)

Sends the request.

SendAsync(HttpRequestMessage, HttpCompletionOption, CancellationToken)

Sends the request.

SendAsync(HttpRequestMessage)

Sends the request.

public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> SendAsync (System.Net.Http.HttpRequestMessage request);
abstract member SendAsync : System.Net.Http.HttpRequestMessage -> System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage>
override this.SendAsync : System.Net.Http.HttpRequestMessage -> System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage>
Public Function SendAsync (request As HttpRequestMessage) As Task(Of HttpResponseMessage)

Parameters

request
HttpRequestMessage

The HttpRequestMessage to send.

Returns

The HttpResponseMessage.

Implements

Applies to

SendAsync(HttpRequestMessage, HttpCompletionOption, CancellationToken)

Sends the request.

public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> SendAsync (System.Net.Http.HttpRequestMessage request, System.Net.Http.HttpCompletionOption completionOption, System.Threading.CancellationToken cancellationToken);
abstract member SendAsync : System.Net.Http.HttpRequestMessage * System.Net.Http.HttpCompletionOption * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage>
override this.SendAsync : System.Net.Http.HttpRequestMessage * System.Net.Http.HttpCompletionOption * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage>
Public Function SendAsync (request As HttpRequestMessage, completionOption As HttpCompletionOption, cancellationToken As CancellationToken) As Task(Of HttpResponseMessage)

Parameters

request
HttpRequestMessage

The HttpRequestMessage to send.

completionOption
HttpCompletionOption

The HttpCompletionOption to pass to the IHttpProvider on send.

cancellationToken
CancellationToken

The CancellationToken for the request.

Returns

The HttpResponseMessage.

Implements

Applies to