RetryHandler.SendAsync 方法
Asynchronously sends the retry request.
命名空间: Microsoft.WindowsAzure
程序集: Microsoft.WindowsAzure.Common(在 Microsoft.WindowsAzure.Common.dll 中)
使用
用法
Dim request As HttpRequestMessage
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of HttpResponseMessage)
returnValue = Me.SendAsync(request, cancellationToken)
语法
声明
<DebuggerStepThroughAttribute> _
Protected Overridable Function SendAsync ( _
request As HttpRequestMessage, _
cancellationToken As CancellationToken _
) As Task(Of HttpResponseMessage)
[DebuggerStepThroughAttribute]
protected virtual Task<HttpResponseMessage> SendAsync (
HttpRequestMessage request,
CancellationToken cancellationToken
)
[DebuggerStepThroughAttribute]
protected:
virtual Task<HttpResponseMessage^>^ SendAsync (
HttpRequestMessage^ request,
CancellationToken cancellationToken
)
/** @attribute DebuggerStepThroughAttribute() */
protected Task<HttpResponseMessage> SendAsync (
HttpRequestMessage request,
CancellationToken cancellationToken
)
DebuggerStepThroughAttribute
protected function SendAsync (
request : HttpRequestMessage,
cancellationToken : CancellationToken
) : Task<HttpResponseMessage>
参数
- request
The request to send.
- cancellationToken
The cancellation token.
返回值
The result of the operation.
线程安全
此类型的所有公开静态(在 Visual Basic 中为共享)成员均为线程安全型成员。但不保证所有实例成员都是线程安全的。
平台
开发平台
Windows Vista、Windows 7 和 Windows Server 2008