Compartilhar via


PlayResult.WaitForEventProcessorAsync(CancellationToken) Método

Definição

public System.Threading.Tasks.Task<Azure.Communication.CallAutomation.PlayEventResult> WaitForEventProcessorAsync (System.Threading.CancellationToken cancellationToken = default);
member this.WaitForEventProcessorAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Communication.CallAutomation.PlayEventResult>
Public Function WaitForEventProcessorAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of PlayEventResult)

Parâmetros

cancellationToken
CancellationToken

O Token de Cancelamento pode ser usado para definir o tempo limite ou cancelar este WaitForEventProcessor.

Retornos

Retorna PlayEventResult o que contém evento PlayCompleted ou PlayFailed evento.

Aplica-se a