Share via


CallControlEventActivity.IEventActivity.Subscribe Method

Called to get the CallControlEventActivity to subscribe for its event. Because Communications events do not exist standalone without CommunicationsEventsActivity 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 CallControlEventActivity
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

Implements

IEventActivity.Subscribe(ActivityExecutionContext, IActivityEventListener<QueueEventArgs>)

Exceptions

Exception Condition
ArgumentNullException

Thrown if argument is null.

InvalidOperationException

Thrown if retrieving CommunicationsWorkflowRuntimeService fails.

InvalidOperationException

Thrown if CallProvider or CallProvider.Call is null.

InvalidOperationException

Thrown if CallProvider.Call is not AudioVideoCall.

See Also

Reference

CallControlEventActivity Class

CallControlEventActivity Members

Microsoft.Rtc.Workflow.Activities Namespace