Compartilhar via


JobRouterClient.GetWorkers(GetWorkersOptions, CancellationToken) Método

Definição

Recupera os trabalhos existentes. Passe status e A ID do Canal para filtrar ainda mais os trabalhos.

public virtual Azure.Pageable<Azure.Communication.JobRouter.Models.RouterWorkerItem> GetWorkers (Azure.Communication.JobRouter.GetWorkersOptions options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetWorkers : Azure.Communication.JobRouter.GetWorkersOptions * System.Threading.CancellationToken -> Azure.Pageable<Azure.Communication.JobRouter.Models.RouterWorkerItem>
override this.GetWorkers : Azure.Communication.JobRouter.GetWorkersOptions * System.Threading.CancellationToken -> Azure.Pageable<Azure.Communication.JobRouter.Models.RouterWorkerItem>
Public Overridable Function GetWorkers (Optional options As GetWorkersOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of RouterWorkerItem)

Parâmetros

options
GetWorkersOptions

Opções de filtragem durante a recuperação de trabalhos do roteador.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

O servidor retornou um erro. Consulte Message para obter detalhes retornados do servidor.

Aplica-se a