Compartilhar via


JobRouterClient.CreateJob(CreateJobOptions, CancellationToken) Método

Definição

Cria um novo trabalho a ser roteado.

public virtual Azure.Response<Azure.Communication.JobRouter.RouterJob> CreateJob (Azure.Communication.JobRouter.CreateJobOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateJob : Azure.Communication.JobRouter.CreateJobOptions * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.JobRouter.RouterJob>
override this.CreateJob : Azure.Communication.JobRouter.CreateJobOptions * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.JobRouter.RouterJob>
Public Overridable Function CreateJob (options As CreateJobOptions, Optional cancellationToken As CancellationToken = Nothing) As Response(Of RouterJob)

Parâmetros

options
CreateJobOptions

Opções para criar um trabalho com atribuição de fila direta.

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