Share via


CallAutomationEventProcessor.WaitForEventProcessor Method

Definition

Overloads

WaitForEventProcessor(Func<CallAutomationEventBase,Boolean>, CancellationToken)

Wait for matching incoming event. This is blocking Call. Returns the CallAutomationEventBase once it arrives in ProcessEvent method.

WaitForEventProcessor<TEvent>(String, String, CancellationToken)

Wait for matching incoming event. This is blocking Call. Returns the CallAutomationEventBase once it arrives in ProcessEvent method.

WaitForEventProcessor(Func<CallAutomationEventBase,Boolean>, CancellationToken)

Source:
CallAutomationEventProcessor.cs
Source:
CallAutomationEventProcessor.cs

Wait for matching incoming event. This is blocking Call. Returns the CallAutomationEventBase once it arrives in ProcessEvent method.

public Azure.Communication.CallAutomation.CallAutomationEventBase WaitForEventProcessor (Func<Azure.Communication.CallAutomation.CallAutomationEventBase,bool> predicate, System.Threading.CancellationToken cancellationToken = default);
member this.WaitForEventProcessor : Func<Azure.Communication.CallAutomation.CallAutomationEventBase, bool> * System.Threading.CancellationToken -> Azure.Communication.CallAutomation.CallAutomationEventBase
Public Function WaitForEventProcessor (predicate As Func(Of CallAutomationEventBase, Boolean), Optional cancellationToken As CancellationToken = Nothing) As CallAutomationEventBase

Parameters

predicate
Func<CallAutomationEventBase,Boolean>

Predicate for waiting on event.

cancellationToken
CancellationToken

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

Returns

Returns CallAutomationEventBase once matching event arrives.

Applies to

WaitForEventProcessor<TEvent>(String, String, CancellationToken)

Source:
CallAutomationEventProcessor.cs
Source:
CallAutomationEventProcessor.cs

Wait for matching incoming event. This is blocking Call. Returns the CallAutomationEventBase once it arrives in ProcessEvent method.

public TEvent WaitForEventProcessor<TEvent> (string connectionId = default, string operationContext = default, System.Threading.CancellationToken cancellationToken = default) where TEvent : Azure.Communication.CallAutomation.CallAutomationEventBase;
member this.WaitForEventProcessor : string * string * System.Threading.CancellationToken -> 'Event (requires 'Event :> Azure.Communication.CallAutomation.CallAutomationEventBase)
Public Function WaitForEventProcessor(Of TEvent As CallAutomationEventBase) (Optional connectionId As String = Nothing, Optional operationContext As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As TEvent

Type Parameters

TEvent

Matching event type.

Parameters

connectionId
String

CallConnectionId of the call.

operationContext
String

OperationContext of the method.

cancellationToken
CancellationToken

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

Returns

TEvent

Returns the event once matching event arrives.

Applies to