Partilhar via


JobRouterClient.GetWorker(String, CancellationToken) Método

Definição

Recupera um trabalho existente por ID.

public virtual Azure.Response<Azure.Communication.JobRouter.Models.RouterWorker> GetWorker (string workerId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetWorker : string * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.JobRouter.Models.RouterWorker>
override this.GetWorker : string * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.JobRouter.Models.RouterWorker>
Public Overridable Function GetWorker (workerId As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of RouterWorker)

Parâmetros

workerId
String

A ID do Trabalhador.

cancellationToken
CancellationToken

(Opcional) O token de cancelamento a ser usado.

Retornos

Exceções

workerId é nulo.

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

Aplica-se a