Edit

TaskAgentHttpClientBase.CreateServiceEndpointAsync Method

Definition

Overloads

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

Parameters

project
Guid

Project ID

endpoint
ServiceEndpoint
userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Attributes

Applies to

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

Parameters

project
String

Project ID or project name

endpoint
ServiceEndpoint
userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Attributes

Applies to