Compartilhar via


CallAutomationEventProcessor.AttachOngoingEventProcessor<TEvent> Método

Definição

Anexe EventProcessor contínuo para um evento específico.

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))

Parâmetros de tipo

TEvent

Tipo de evento De automação de chamada.

Parâmetros

callConnectionId
String

CallConnectionId da chamada.

eventProcessor
Action<TEvent>

EventProcessor a ser acionado quando o evento especificado chegar.

Aplica-se a