Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

HttpServer::SendAsync Method (HttpRequestMessage^, CancellationToken)

 

Dispatches an incoming HttpRequestMessage.

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

protected:
[DebuggerStepThroughAttribute]
virtual Task<HttpResponseMessage^>^ SendAsync(
	HttpRequestMessage^ request,
	CancellationToken cancellationToken
) override

Parameters

request
Type: System.Net.Http::HttpRequestMessage^

The request to dispatch.

cancellationToken
Type: System.Threading::CancellationToken

The token to monitor for cancellation requests.

Return Value

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

A task representing the asynchronous operation.

Return to top
Show: