Bearbeiten

Freigeben über


TaskAgentHttpClientBase.QueryServiceEndpointAsync Method

Definition

Overloads

QueryServiceEndpointAsync(Guid, DataSourceBinding, Object, CancellationToken)
Obsolete.

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

QueryServiceEndpointAsync(String, DataSourceBinding, Object, CancellationToken)
Obsolete.

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

QueryServiceEndpointAsync(Guid, DataSourceBinding, Object, CancellationToken)

Caution

Use ExecuteServiceEndpointRequest API Instead

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

[System.Obsolete("Use ExecuteServiceEndpointRequest API Instead")]
public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<string>> QueryServiceEndpointAsync(Guid project, Microsoft.TeamFoundation.DistributedTask.WebApi.DataSourceBinding binding, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member QueryServiceEndpointAsync : Guid * Microsoft.TeamFoundation.DistributedTask.WebApi.DataSourceBinding * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<string>>
override this.QueryServiceEndpointAsync : Guid * Microsoft.TeamFoundation.DistributedTask.WebApi.DataSourceBinding * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<string>>

Parameters

project
Guid

Project ID

binding
DataSourceBinding

Describes the data source to fetch.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Attributes

Applies to

QueryServiceEndpointAsync(String, DataSourceBinding, Object, CancellationToken)

Caution

Use ExecuteServiceEndpointRequest API Instead

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

[System.Obsolete("Use ExecuteServiceEndpointRequest API Instead")]
public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<string>> QueryServiceEndpointAsync(string project, Microsoft.TeamFoundation.DistributedTask.WebApi.DataSourceBinding binding, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member QueryServiceEndpointAsync : string * Microsoft.TeamFoundation.DistributedTask.WebApi.DataSourceBinding * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<string>>
override this.QueryServiceEndpointAsync : string * Microsoft.TeamFoundation.DistributedTask.WebApi.DataSourceBinding * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<string>>

Parameters

project
String

Project ID or project name

binding
DataSourceBinding

Describes the data source to fetch.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Attributes

Applies to