AddParticipantResult.WaitForEventProcessor(CancellationToken) Method

Definition

This is blocking call. Wait for AddParticipantEventResult using CallAutomationEventProcessor.

public Azure.Communication.CallAutomation.AddParticipantEventResult WaitForEventProcessor (System.Threading.CancellationToken cancellationToken = default);
member this.WaitForEventProcessor : System.Threading.CancellationToken -> Azure.Communication.CallAutomation.AddParticipantEventResult
Public Function WaitForEventProcessor (Optional cancellationToken As CancellationToken = Nothing) As AddParticipantEventResult

Parameters

cancellationToken
CancellationToken

Cancellation Token can be used to set timeout or cancel this WaitForEventProcessor.

Returns

Returns AddParticipantEventResult which contains either AddParticipantSucceeded event or AddParticipantFailed event.

Applies to