ProgressMessageHandler.SendAsync Method (HttpRequestMessage, CancellationToken)
Sends the specified progress message to an HTTP server for delivery.
Namespace: System.Net.Http.Handlers
Assembly: System.Net.Http.Formatting (in System.Net.Http.Formatting.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 request.
cancellationToken
Type: System.Threading.CancellationTokenThe cancellation token.
Return Value
Type: System.Threading.Tasks.Task<HttpResponseMessage>
The sent progress message.
See Also
ProgressMessageHandler Class
System.Net.Http.Handlers Namespace
Return to top