Share via


TokenCloudCredentials.ProcessHttpRequestAsync Method

Apply the credentials to the HTTP request.

Namespace: Microsoft.WindowsAzure
Assembly: Microsoft.WindowsAzure.Common (in Microsoft.WindowsAzure.Common.dll)

Usage

'Usage
Dim instance As TokenCloudCredentials
Dim request As HttpRequestMessage
Dim cancellationToken As CancellationToken
Dim returnValue As Task

returnValue = instance.ProcessHttpRequestAsync(request, cancellationToken)

Syntax

'Declaration
Public Overrides Function ProcessHttpRequestAsync ( _
    request As HttpRequestMessage, _
    cancellationToken As CancellationToken _
) As Task
public override Task ProcessHttpRequestAsync (
    HttpRequestMessage request,
    CancellationToken cancellationToken
)
public:
virtual Task^ ProcessHttpRequestAsync (
    HttpRequestMessage^ request, 
    CancellationToken cancellationToken
) override
public Task ProcessHttpRequestAsync (
    HttpRequestMessage request, 
    CancellationToken cancellationToken
)
public override function ProcessHttpRequestAsync (
    request : HttpRequestMessage, 
    cancellationToken : CancellationToken
) : Task

Parameters

  • request
    The HTTP request.
  • cancellationToken
    Cancellation token.

Return Value

Task that will complete when processing has completed.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

Target Platforms

See Also

Reference

TokenCloudCredentials Class
TokenCloudCredentials Members
Microsoft.WindowsAzure Namespace