Share via


CallAutomationEventProcessor Class

Definition

Call Automation's EventProcessor for incoming events for ease of use.

public class CallAutomationEventProcessor
type CallAutomationEventProcessor = class
Public Class CallAutomationEventProcessor
Inheritance
CallAutomationEventProcessor

Methods

AttachOngoingEventProcessor<TEvent>(String, Action<TEvent>)

Attach Ongoing EventProcessor for specific event.

DetachOngoingEventProcessor<TEvent>(String)

Detach Ongoing EventProcessor for specific event.

ProcessEvents(IEnumerable<CallAutomationEventBase>)

Process incoming events. Pass incoming events to get it processed to have other method like WaitForEventProcessor to function.

ProcessEvents(IEnumerable<CloudEvent>)

Process incoming events. Pass incoming events to get it processed to have other method like WaitForEventProcessor to function.

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.

WaitForEventProcessorAsync(Func<CallAutomationEventBase,Boolean>, CancellationToken)

Wait for matching incoming event. Returns the CallAutomationEventBase once it arrives in ProcessEvent method.

WaitForEventProcessorAsync<TEvent>(String, String, CancellationToken)

Wait for matching incoming event. Returns the CallAutomationEventBase once it arrives in ProcessEvent method.

Applies to