Language

TaskAgentHttpClientBase.UpdateServiceEndpointsAsync Method

Definition

Overloads

UpdateServiceEndpointsAsync(Guid, IEnumerable<ServiceEndpoint>, 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>> UpdateServiceEndpointsAsync(Guid project, System.Collections.Generic.IEnumerable<Microsoft.TeamFoundation.DistributedTask.WebApi.ServiceEndpoint> endpoints, 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>> UpdateServiceEndpointsAsync(Guid project, System.Collections.Generic.IEnumerable<Microsoft.TeamFoundation.DistributedTask.WebApi.ServiceEndpoint> endpoints, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member UpdateServiceEndpointsAsync : Guid * seq<Microsoft.TeamFoundation.DistributedTask.WebApi.ServiceEndpoint> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.DistributedTask.WebApi.ServiceEndpoint>>
override this.UpdateServiceEndpointsAsync : Guid * seq<Microsoft.TeamFoundation.DistributedTask.WebApi.ServiceEndpoint> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.DistributedTask.WebApi.ServiceEndpoint>>

Parameters

project
Guid

Project ID

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Attributes

Applies to

UpdateServiceEndpointsAsync(String, IEnumerable<ServiceEndpoint>, 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>> UpdateServiceEndpointsAsync(string project, System.Collections.Generic.IEnumerable<Microsoft.TeamFoundation.DistributedTask.WebApi.ServiceEndpoint> endpoints, 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>> UpdateServiceEndpointsAsync(string project, System.Collections.Generic.IEnumerable<Microsoft.TeamFoundation.DistributedTask.WebApi.ServiceEndpoint> endpoints, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member UpdateServiceEndpointsAsync : string * seq<Microsoft.TeamFoundation.DistributedTask.WebApi.ServiceEndpoint> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.DistributedTask.WebApi.ServiceEndpoint>>
override this.UpdateServiceEndpointsAsync : string * seq<Microsoft.TeamFoundation.DistributedTask.WebApi.ServiceEndpoint> * 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

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Attributes

Applies to