次の方法で共有


BaseRequest.SendAsync Method

Definition

Overloads

SendAsync(Object, CancellationToken, HttpCompletionOption)

Sends the request.

SendAsync<T>(Object, CancellationToken, HttpCompletionOption)

Sends the request.

SendAsync(Object, CancellationToken, HttpCompletionOption)

Sends the request.

public System.Threading.Tasks.Task SendAsync (object serializableObject, System.Threading.CancellationToken cancellationToken, System.Net.Http.HttpCompletionOption completionOption = System.Net.Http.HttpCompletionOption.ResponseContentRead);
member this.SendAsync : obj * System.Threading.CancellationToken * System.Net.Http.HttpCompletionOption -> System.Threading.Tasks.Task
Public Function SendAsync (serializableObject As Object, cancellationToken As CancellationToken, Optional completionOption As HttpCompletionOption = System.Net.Http.HttpCompletionOption.ResponseContentRead) As Task

Parameters

serializableObject
Object

The serializable object to send.

cancellationToken
CancellationToken

The CancellationToken for the request.

completionOption
HttpCompletionOption

The HttpCompletionOption to pass to the IHttpProvider on send.

Returns

The task to await.

Applies to

SendAsync<T>(Object, CancellationToken, HttpCompletionOption)

Sends the request.

public System.Threading.Tasks.Task<T> SendAsync<T> (object serializableObject, System.Threading.CancellationToken cancellationToken, System.Net.Http.HttpCompletionOption completionOption = System.Net.Http.HttpCompletionOption.ResponseContentRead);
member this.SendAsync : obj * System.Threading.CancellationToken * System.Net.Http.HttpCompletionOption -> System.Threading.Tasks.Task<'T>
Public Function SendAsync(Of T) (serializableObject As Object, cancellationToken As CancellationToken, Optional completionOption As HttpCompletionOption = System.Net.Http.HttpCompletionOption.ResponseContentRead) As Task(Of T)

Type Parameters

T

The expected response object type for deserialization.

Parameters

serializableObject
Object

The serializable object to send.

cancellationToken
CancellationToken

The CancellationToken for the request.

completionOption
HttpCompletionOption

The HttpCompletionOption to pass to the IHttpProvider on send.

Returns

Task<T>

The deserialized response object.

Applies to