HttpRoutingDispatcher.SendAsync Method (HttpRequestMessage, CancellationToken)

 

Sends an HTTP request as an asynchronous operation.

Namespace:   System.Web.Http.Dispatcher
Assembly:  System.Web.Http (in System.Web.Http.dll)

protected override Task<HttpResponseMessage> SendAsync(
	HttpRequestMessage request,
	CancellationToken cancellationToken
)

Parameters

request
Type: System.Net.Http.HttpRequestMessage

The HTTP request message to send.

cancellationToken
Type: System.Threading.CancellationToken

The cancellation token to cancel operation.

Return Value

Type: System.Threading.Tasks.Task<HttpResponseMessage>

The task object representing the asynchronous operation.

Return to top
Show: