Bearbeiten

Freigeben über


TaskAgentHttpClientBase.QueryEndpointAsync Method

Definition

[Preview API] Proxy for a GET request defined by an 'endpoint'. The request is authorized using a service connection. The response is filtered using an XPath/Json based selector.

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<string>> QueryEndpointAsync(Microsoft.TeamFoundation.DistributedTask.WebApi.TaskDefinitionEndpoint endpoint, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member QueryEndpointAsync : Microsoft.TeamFoundation.DistributedTask.WebApi.TaskDefinitionEndpoint * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<string>>
override this.QueryEndpointAsync : Microsoft.TeamFoundation.DistributedTask.WebApi.TaskDefinitionEndpoint * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<string>>

Parameters

endpoint
TaskDefinitionEndpoint

Describes the URL to fetch.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to