Edit

TaskAgentHttpClientBase.GetServiceEndpointsByNamesAsync Method

Definition

Overloads

GetServiceEndpointsByNamesAsync(Guid, IEnumerable<String>, String, IEnumerable<String>, Nullable<Boolean>, Object, CancellationToken)

Caution

ServiceEndpoint APIs under distributedtask area is deprecated. Use the APIs under serviceendpoint area instead.

[Preview API]

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.DistributedTask.WebApi.ServiceEndpoint>> GetServiceEndpointsByNamesAsync(Guid project, System.Collections.Generic.IEnumerable<string> endpointNames, string type = null, System.Collections.Generic.IEnumerable<string> authSchemes = null, Nullable<bool> includeFailed = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
[System.Obsolete("ServiceEndpoint APIs under distributedtask area is deprecated. Use the APIs under serviceendpoint area instead.")]
public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.DistributedTask.WebApi.ServiceEndpoint>> GetServiceEndpointsByNamesAsync(Guid project, System.Collections.Generic.IEnumerable<string> endpointNames, string type = null, System.Collections.Generic.IEnumerable<string> authSchemes = null, Nullable<bool> includeFailed = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetServiceEndpointsByNamesAsync : Guid * seq<string> * string * seq<string> * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.DistributedTask.WebApi.ServiceEndpoint>>
override this.GetServiceEndpointsByNamesAsync : Guid * seq<string> * string * seq<string> * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.DistributedTask.WebApi.ServiceEndpoint>>

Parameters

project
Guid

Project ID

endpointNames
IEnumerable<String>
type
String
authSchemes
IEnumerable<String>
includeFailed
Nullable<Boolean>
userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Attributes

Applies to

GetServiceEndpointsByNamesAsync(String, IEnumerable<String>, String, IEnumerable<String>, Nullable<Boolean>, Object, CancellationToken)

Caution

ServiceEndpoint APIs under distributedtask area is deprecated. Use the APIs under serviceendpoint area instead.

[Preview API]

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.DistributedTask.WebApi.ServiceEndpoint>> GetServiceEndpointsByNamesAsync(string project, System.Collections.Generic.IEnumerable<string> endpointNames, string type = null, System.Collections.Generic.IEnumerable<string> authSchemes = null, Nullable<bool> includeFailed = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
[System.Obsolete("ServiceEndpoint APIs under distributedtask area is deprecated. Use the APIs under serviceendpoint area instead.")]
public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.DistributedTask.WebApi.ServiceEndpoint>> GetServiceEndpointsByNamesAsync(string project, System.Collections.Generic.IEnumerable<string> endpointNames, string type = null, System.Collections.Generic.IEnumerable<string> authSchemes = null, Nullable<bool> includeFailed = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetServiceEndpointsByNamesAsync : string * seq<string> * string * seq<string> * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.DistributedTask.WebApi.ServiceEndpoint>>
override this.GetServiceEndpointsByNamesAsync : string * seq<string> * string * seq<string> * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.DistributedTask.WebApi.ServiceEndpoint>>

Parameters

project
String

Project ID or project name

endpointNames
IEnumerable<String>
type
String
authSchemes
IEnumerable<String>
includeFailed
Nullable<Boolean>
userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Attributes

Applies to