Share via


Subscribe Method

Creates the queue for the event represented in the CallControlEventActivity class.

Namespace:  Microsoft.Rtc.Workflow.Activities
Assembly:  Microsoft.Rtc.Workflow (in Microsoft.Rtc.Workflow.dll)

Syntax

'Declaration
Protected Overridable Sub Subscribe ( _
    parentContext As ActivityExecutionContext, _
    parentEventHandler As IActivityEventListener(Of QueueEventArgs) _
)
protected virtual void Subscribe(
    ActivityExecutionContext parentContext,
    IActivityEventListener<QueueEventArgs> parentEventHandler
)
protected:
virtual void Subscribe(
    ActivityExecutionContext^ parentContext, 
    IActivityEventListener<QueueEventArgs^>^ parentEventHandler
)
function subscribe(parentContext, parentEventHandler);

Parameters

  • parentContext
    Type: ActivityExecutionContext
  • parentEventHandler
    Type: IActivityEventListener<(Of <(QueueEventArgs>)>)

Exceptions

Exception Condition
ArgumentNullException Thrown if the 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

CallControlEventActivity Class

Microsoft.Rtc.Workflow.Activities Namespace