Share via


CallAutomationEventProcessor.AttachOngoingEventProcessor<TEvent> Method

Definition

Attach Ongoing EventProcessor for specific event.

public void AttachOngoingEventProcessor<TEvent> (string callConnectionId, Action<TEvent> eventProcessor) where TEvent : Azure.Communication.CallAutomation.CallAutomationEventBase;
member this.AttachOngoingEventProcessor : string * Action<'Event (requires 'Event :> Azure.Communication.CallAutomation.CallAutomationEventBase)> -> unit (requires 'Event :> Azure.Communication.CallAutomation.CallAutomationEventBase)
Public Sub AttachOngoingEventProcessor(Of TEvent As CallAutomationEventBase) (callConnectionId As String, eventProcessor As Action(Of TEvent))

Type Parameters

TEvent

Call Automation Event Type.

Parameters

callConnectionId
String

CallConnectionId of the call.

eventProcessor
Action<TEvent>

EventProcessor to be fired when the specified event arrives.

Applies to