TCnHttpClient.GetAsync(String,_CancellationToken) Method

Send a GET request to the specified Uri with a cancellation token as an asynchronous operation.

Namespace: CNClrLib.Component.HttpClient
public
 function GetAsync(RequestUri: String; CancellationToken: _CancellationToken): _GenericTask; overload;

Parameters

RequestUri
Type: String

The Uri the request is sent to.

CancellationToken
Type: System.Void

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Return Value

The task object representing the asynchronous operation. The Return type in .Net is Task<HttpResponseMessage>.