CorsMessageHandler.SendAsync Method (HttpRequestMessage, CancellationToken)
Sends an HTTP request to the inner handler to send to the server as an asynchronous operation.
Namespace: System.Web.Http.Cors
Assembly: System.Web.Http.Cors (in System.Web.Http.Cors.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
request
Type: System.Net.Http.HttpRequestMessageThe HTTP request message to send to the server.
cancellationToken
Type: System.Threading.CancellationTokenA cancellation token to cancel operation.
Return Value
Type: System.Threading.Tasks.Task<HttpResponseMessage>
Returns Task<TResult>. The task object representing the asynchronous operation.
See Also
CorsMessageHandler Class
System.Web.Http.Cors Namespace
Return to top