VssHttpMessageHandler.SendAsync Method (HttpRequestMessage, CancellationToken)
Namespace: Microsoft.VisualStudio.Services.Common
Assembly: Microsoft.VisualStudio.Services.Common (in Microsoft.VisualStudio.Services.Common.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.