CloudCredentials.ProcessHttpRequestAsync 方法

Applies the credentials to the HTTP request.

命名空间: Microsoft.WindowsAzure
程序集: Microsoft.WindowsAzure.Common(在 Microsoft.WindowsAzure.Common.dll 中)

使用

用法
Dim instance As CloudCredentials
Dim request As HttpRequestMessage
Dim cancellationToken As CancellationToken
Dim returnValue As Task

returnValue = instance.ProcessHttpRequestAsync(request, cancellationToken)

语法

声明
Public Overridable Function ProcessHttpRequestAsync ( _
    request As HttpRequestMessage, _
    cancellationToken As CancellationToken _
) As Task
public virtual Task ProcessHttpRequestAsync (
    HttpRequestMessage request,
    CancellationToken cancellationToken
)
public:
virtual Task^ ProcessHttpRequestAsync (
    HttpRequestMessage^ request, 
    CancellationToken cancellationToken
)
public Task ProcessHttpRequestAsync (
    HttpRequestMessage request, 
    CancellationToken cancellationToken
)
public function ProcessHttpRequestAsync (
    request : HttpRequestMessage, 
    cancellationToken : CancellationToken
) : Task

参数

  • request
    The HTTP request.
  • cancellationToken
    The cancellation token.

返回值

A Task object that will be complete when processing is finished.

线程安全

此类型的所有公开静态(在 Visual Basic 中为共享)成员均为线程安全型成员。但不保证所有实例成员都是线程安全的。

平台

开发平台

Windows Vista、Windows 7 和 Windows Server 2008

目标平台

另请参阅

参考

CloudCredentials 类
CloudCredentials 成员
Microsoft.WindowsAzure 命名空间