Compartilhar via


JobRouterClient.GetQueuePositionAsync(String, CancellationToken) Método

Definição

Obtém detalhes de posição de trabalhos.

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

Parâmetros

jobId
String

A cadeia de caracteres a ser usada.

cancellationToken
CancellationToken

(Opcional) O token de cancelamento a ser usado.

Retornos

Exceções

jobId é nulo.

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

Aplica-se a