TaskAgentHttpClientBase.QueryEndpointAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
[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.