CommandActivity.Subscribe Method
Requests that the CommandActivity creates a queue for its event. Because commands do not exist standalone without CommandsActivity in Microsoft Unified Communications Managed API, this method is only called by the CommandsActivity.
Namespace: Microsoft.Rtc.Workflow.Activities
Assembly: Microsoft.Rtc.Workflow (in Microsoft.Rtc.Workflow.dll)
Syntax
'Declaration
Protected Sub Subscribe ( _
parentContext As ActivityExecutionContext, _
parentEventHandler As IActivityEventListener(Of QueueEventArgs) _
)
'Usage
Dim parentContext As ActivityExecutionContext
Dim parentEventHandler As IActivityEventListener(Of QueueEventArgs)
Me.Subscribe(parentContext, parentEventHandler)
protected void Subscribe(
ActivityExecutionContext parentContext,
IActivityEventListener<QueueEventArgs> parentEventHandler
)
Parameters
- parentContext
Type: System.Workflow.ComponentModel.ActivityExecutionContext
- parentEventHandler
Type: System.Workflow.ComponentModel.IActivityEventListener<QueueEventArgs>
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown if argument is null. |