VssHttpRetryMessageHandler.SendAsync Method (HttpRequestMessage, CancellationToken)
Namespace: Microsoft.VisualStudio.Services.WebApi
Assembly: Microsoft.VisualStudio.Services.WebApi (in Microsoft.VisualStudio.Services.WebApi.dll)
Syntax
'Declaration
Protected Overridable Function SendAsync ( _
request As HttpRequestMessage, _
cancellationToken As CancellationToken _
) As Task(Of HttpResponseMessage)
protected virtual Task<HttpResponseMessage> SendAsync(
HttpRequestMessage request,
CancellationToken cancellationToken
)
protected:
virtual Task<HttpResponseMessage^>^ SendAsync(
HttpRequestMessage^ request,
CancellationToken cancellationToken
)
abstract SendAsync :
request:HttpRequestMessage *
cancellationToken:CancellationToken -> Task<HttpResponseMessage>
override SendAsync :
request:HttpRequestMessage *
cancellationToken:CancellationToken -> Task<HttpResponseMessage>
protected function SendAsync(
request : HttpRequestMessage,
cancellationToken : CancellationToken
) : Task<HttpResponseMessage>
Parameters
- request
Type: System.Net.Http.HttpRequestMessage
- cancellationToken
Type: System.Threading.CancellationToken
Return Value
Type: System.Threading.Tasks.Task<HttpResponseMessage>
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.