WorkflowQueue.RegisterForQueueItemAvailable 方法

定义

向事件注册订阅者 QueueItemAvailable

重载

注解

可以使用重 RegisterForQueueItemAvailable 载的方法为事件注册订阅服务器 QueueItemAvailable 。 该 QueueItemAvailable 事件用于通知订阅者项已以异步方式传送到此 WorkflowQueue项。

RegisterForQueueItemAvailable(IActivityEventListener<QueueEventArgs>)

向事件注册订阅者 QueueItemAvailable

public:
 void RegisterForQueueItemAvailable(System::Workflow::ComponentModel::IActivityEventListener<System::Workflow::ComponentModel::QueueEventArgs ^> ^ eventListener);
public void RegisterForQueueItemAvailable(System.Workflow.ComponentModel.IActivityEventListener<System.Workflow.ComponentModel.QueueEventArgs> eventListener);
member this.RegisterForQueueItemAvailable : System.Workflow.ComponentModel.IActivityEventListener<System.Workflow.ComponentModel.QueueEventArgs> -> unit
Public Sub RegisterForQueueItemAvailable (eventListener As IActivityEventListener(Of QueueEventArgs))

参数

eventListener
IActivityEventListener<QueueEventArgs>

实现接口的QueueEventArgsIActivityEventListener<T>订阅服务器。

例外

eventListener是空引用(Visual Basic 中的 Nothing)。

适用于

RegisterForQueueItemAvailable(IActivityEventListener<QueueEventArgs>, String)

向事件注册订阅者 QueueItemAvailable

public:
 void RegisterForQueueItemAvailable(System::Workflow::ComponentModel::IActivityEventListener<System::Workflow::ComponentModel::QueueEventArgs ^> ^ eventListener, System::String ^ subscriberQualifiedName);
public void RegisterForQueueItemAvailable(System.Workflow.ComponentModel.IActivityEventListener<System.Workflow.ComponentModel.QueueEventArgs> eventListener, string subscriberQualifiedName);
member this.RegisterForQueueItemAvailable : System.Workflow.ComponentModel.IActivityEventListener<System.Workflow.ComponentModel.QueueEventArgs> * string -> unit
Public Sub RegisterForQueueItemAvailable (eventListener As IActivityEventListener(Of QueueEventArgs), subscriberQualifiedName As String)

参数

eventListener
IActivityEventListener<QueueEventArgs>

实现接口的QueueEventArgsIActivityEventListener<T>订阅服务器。

subscriberQualifiedName
String

订阅 QualifiedName 事件或 null 引用的活动的 QueueItemAvailable(Visual Basic 中的 Nothing)。

例外

eventListener 为 null 引用 (Nothing)。

注解

如果订阅活动的限定名称由subscriberQualifiedName其提供,则调用时WorkflowQueueInfo.SubscribedActivityNames会返回WorkflowQueueInfoWorkflowInstance.GetWorkflowQueueData与此队列关联的名称。

适用于