Partilhar via


JobRouterClient.CreateWorker(CreateWorkerOptions, CancellationToken) Método

Definição

Criar ou atualizar um trabalho para processar trabalhos.

public virtual Azure.Response<Azure.Communication.JobRouter.Models.RouterWorker> CreateWorker (Azure.Communication.JobRouter.CreateWorkerOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateWorker : Azure.Communication.JobRouter.CreateWorkerOptions * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.JobRouter.Models.RouterWorker>
override this.CreateWorker : Azure.Communication.JobRouter.CreateWorkerOptions * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.JobRouter.Models.RouterWorker>
Public Overridable Function CreateWorker (options As CreateWorkerOptions, Optional cancellationToken As CancellationToken = Nothing) As 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