TaskAgentHttpClientBase.GetServiceEndpointsAsync 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.
Overloads
GetServiceEndpointsAsync(Guid, String, IEnumerable<String>, IEnumerable<Guid>, 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>> GetServiceEndpointsAsync(Guid project, string type = null, System.Collections.Generic.IEnumerable<string> authSchemes = null, System.Collections.Generic.IEnumerable<Guid> endpointIds = 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>> GetServiceEndpointsAsync(Guid project, string type = null, System.Collections.Generic.IEnumerable<string> authSchemes = null, System.Collections.Generic.IEnumerable<Guid> endpointIds = null, Nullable<bool> includeFailed = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetServiceEndpointsAsync : Guid * string * seq<string> * seq<Guid> * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.DistributedTask.WebApi.ServiceEndpoint>>
override this.GetServiceEndpointsAsync : Guid * string * seq<string> * seq<Guid> * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.DistributedTask.WebApi.ServiceEndpoint>>
Parameters
- project
- Guid
Project ID
- type
- String
- authSchemes
- IEnumerable<String>
- endpointIds
- IEnumerable<Guid>
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
- Attributes
Applies to
GetServiceEndpointsAsync(String, String, IEnumerable<String>, IEnumerable<Guid>, 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>> GetServiceEndpointsAsync(string project, string type = null, System.Collections.Generic.IEnumerable<string> authSchemes = null, System.Collections.Generic.IEnumerable<Guid> endpointIds = 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>> GetServiceEndpointsAsync(string project, string type = null, System.Collections.Generic.IEnumerable<string> authSchemes = null, System.Collections.Generic.IEnumerable<Guid> endpointIds = null, Nullable<bool> includeFailed = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetServiceEndpointsAsync : string * string * seq<string> * seq<Guid> * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.DistributedTask.WebApi.ServiceEndpoint>>
override this.GetServiceEndpointsAsync : string * string * seq<string> * seq<Guid> * 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
- type
- String
- authSchemes
- IEnumerable<String>
- endpointIds
- IEnumerable<Guid>
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
- Attributes