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)
Syntax
protected override Task<HttpResponseMessage> SendAsync(
HttpRequestMessage request,
CancellationToken cancellationToken
)
protected:
virtual Task<HttpResponseMessage^>^ SendAsync(
HttpRequestMessage^ request,
CancellationToken cancellationToken
) override
override SendAsync :
request:HttpRequestMessage *
cancellationToken:CancellationToken -> Task<HttpResponseMessage>
Protected Overrides Function SendAsync (
request As HttpRequestMessage,
cancellationToken As CancellationToken
) As Task(Of HttpResponseMessage)
Parameters
request
Type: System.Net.Http.HttpRequestMessageThe HTTP request message to send.
cancellationToken
Type: System.Threading.CancellationTokenThe cancellation token to cancel operation.
Return Value
Type: System.Threading.Tasks.Task<HttpResponseMessage>
The task object representing the asynchronous operation.
See Also
HttpRoutingDispatcher Class
System.Web.Http.Dispatcher Namespace
Return to top