DialogEventActivity.IEventActivity.Subscribe Method
Creates the subscription of the DialogEventActivity to a Microsoft Unified Communications Managed API event. Because speech events do not exist standalone without CommunicationsEventsActivity in Microsoft Unified Communications Managed API, this method is only called by the CommunicationsEventsActivity.
Namespace: Microsoft.Rtc.Workflow.Activities
Assembly: Microsoft.Rtc.Workflow (in Microsoft.Rtc.Workflow.dll)
Syntax
'Declaration
Private Sub Subscribe ( _
parentContext As ActivityExecutionContext, _
parentEventHandler As IActivityEventListener(Of QueueEventArgs) _
) Implements IEventActivity.Subscribe
'Usage
Dim instance As DialogEventActivity
Dim parentContext As ActivityExecutionContext
Dim parentEventHandler As IActivityEventListener(Of QueueEventArgs)
CType(instance, IEventActivity).Subscribe(parentContext, _
parentEventHandler)
void IEventActivity.Subscribe(
ActivityExecutionContext parentContext,
IActivityEventListener<QueueEventArgs> parentEventHandler
)
Parameters
- parentContext
Type: System.Workflow.ComponentModel.ActivityExecutionContext
- parentEventHandler
Type: System.Workflow.ComponentModel.IActivityEventListener<QueueEventArgs>
Implements
IEventActivity.Subscribe(ActivityExecutionContext, IActivityEventListener<QueueEventArgs>)
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown if argument is null. |