Edit

TaskAgentHttpClientBase.GetAgentQueuesAsync Method

Definition

Overloads

GetAgentQueuesAsync(String, String, Nullable<TaskAgentQueueActionFilter>, Object, CancellationToken)

[Preview API]

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskAgentQueue>> GetAgentQueuesAsync(string project, string queueName = null, Nullable<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskAgentQueueActionFilter> actionFilter = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetAgentQueuesAsync : string * string * Nullable<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskAgentQueueActionFilter> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskAgentQueue>>
override this.GetAgentQueuesAsync : string * string * Nullable<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskAgentQueueActionFilter> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskAgentQueue>>

Parameters

project
String

Project ID or project name

queueName
String
userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetAgentQueuesAsync(String, Nullable<TaskAgentQueueActionFilter>, Object, CancellationToken)

[Preview API]

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskAgentQueue>> GetAgentQueuesAsync(string queueName = null, Nullable<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskAgentQueueActionFilter> actionFilter = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetAgentQueuesAsync : string * Nullable<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskAgentQueueActionFilter> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskAgentQueue>>
override this.GetAgentQueuesAsync : string * Nullable<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskAgentQueueActionFilter> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskAgentQueue>>

Parameters

queueName
String
userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetAgentQueuesAsync(Guid, String, Nullable<TaskAgentQueueActionFilter>, Object, CancellationToken)

[Preview API]

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskAgentQueue>> GetAgentQueuesAsync(Guid project, string queueName = null, Nullable<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskAgentQueueActionFilter> actionFilter = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetAgentQueuesAsync : Guid * string * Nullable<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskAgentQueueActionFilter> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskAgentQueue>>
override this.GetAgentQueuesAsync : Guid * string * Nullable<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskAgentQueueActionFilter> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.DistributedTask.WebApi.TaskAgentQueue>>

Parameters

project
Guid

Project ID

queueName
String
userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to