Compartilhar via


JobRouterClient.GetWorkersAsync(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.AsyncPageable<Azure.Communication.JobRouter.Models.RouterWorkerItem> GetWorkersAsync (Azure.Communication.JobRouter.GetWorkersOptions options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetWorkersAsync : Azure.Communication.JobRouter.GetWorkersOptions * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.Communication.JobRouter.Models.RouterWorkerItem>
override this.GetWorkersAsync : Azure.Communication.JobRouter.GetWorkersOptions * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.Communication.JobRouter.Models.RouterWorkerItem>
Public Overridable Function GetWorkersAsync (Optional options As GetWorkersOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(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