Chat Support
Loupe - Log - Monitor - Resolve
Gibraltar.Server.Client.Internal Namespace / HttpClientLogger Class / SendAsync Method
The HTTP request message to send.The HTTP request message to send to the server.
The cancellation token to cancel operation.A cancellation token to cancel operation.

In This Topic
    SendAsync Method
    In This Topic
    Send an HTTP request as an asynchronous operation.Sends an HTTP request to the inner handler to send to the server as an asynchronous operation.
    Syntax
    'Declaration
     
    
    <AsyncStateMachineAttribute(Gibraltar.Server.Client.Internal.HttpClientLogger/d__4)> 
    Protected Overrides Function SendAsync( _ 
       ByVal request As HttpRequestMessage, _ 
       ByVal cancellationToken As CancellationToken _ 
    ) As Task(Of HttpResponseMessage)
    [AsyncStateMachine(Gibraltar.Server.Client.Internal.HttpClientLogger/d__4)] 
    protected override Task<HttpResponseMessage> SendAsync( 
       HttpRequestMessage request, 
       CancellationToken cancellationToken 
    )

    Parameters

    request
    The HTTP request message to send.The HTTP request message to send to the server.
    cancellationToken
    The cancellation token to cancel operation.A cancellation token to cancel operation.

    Return Value

    The task object representing the asynchronous operation.The task object representing the asynchronous operation.
    Exceptions
    ExceptionDescription
    The request was a null reference (Nothing in Visual Basic).
    The request was a null reference (Nothing in Visual Basic).
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also