Partilhar via


JobRouterClient.CreateJobAsync(CreateJobOptions, CancellationToken) Método

Definição

Cria um novo trabalho a ser roteado.

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