HttpControllerDispatcher.SendAsync Method (HttpRequestMessage, CancellationToken)

 

Dispatches an incoming HttpRequestMessage to an IHttpController.

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

Syntax

[DebuggerStepThroughAttribute]
protected override Task<HttpResponseMessage> SendAsync(
    HttpRequestMessage request,
    CancellationToken cancellationToken
)
protected:
[DebuggerStepThroughAttribute]
virtual Task<HttpResponseMessage^>^ SendAsync(
    HttpRequestMessage^ request,
    CancellationToken cancellationToken
) override
[<DebuggerStepThroughAttribute>]
override SendAsync : 
        request:HttpRequestMessage *
        cancellationToken:CancellationToken -> Task<HttpResponseMessage>
<DebuggerStepThroughAttribute>
Protected Overrides Function SendAsync (
    request As HttpRequestMessage,
    cancellationToken As CancellationToken
) As Task(Of HttpResponseMessage)

Parameters

Return Value

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

A Task<TResult> representing the ongoing operation.

See Also

HttpControllerDispatcher Class
System.Web.Http.Dispatcher Namespace

Return to top