Partilhar via


JobRouterClient.CreateWorkerAsync Método

Definição

Criar ou atualizar um trabalho para processar trabalhos.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Communication.JobRouter.Models.RouterWorker>> CreateWorkerAsync (Azure.Communication.JobRouter.CreateWorkerOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateWorkerAsync : Azure.Communication.JobRouter.CreateWorkerOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.JobRouter.Models.RouterWorker>>
override this.CreateWorkerAsync : Azure.Communication.JobRouter.CreateWorkerOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.JobRouter.Models.RouterWorker>>
Public Overridable Function CreateWorkerAsync (options As CreateWorkerOptions, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of RouterWorker))

Parâmetros

options
CreateWorkerOptions

Opções para criar um trabalho de roteador.

cancellationToken
CancellationToken

(Opcional) 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