Uredi

Deli z drugimi prek


WorkflowQueue.RegisterForQueueItemAvailable Method

Definition

Registers a subscriber to the QueueItemAvailable event.

Overloads

Remarks

You can use the overloaded RegisterForQueueItemAvailable methods to register a subscriber for the QueueItemAvailable event. The QueueItemAvailable event is used to notify subscribers that an item has been delivered (in an asynchronous manner) to this WorkflowQueue.

RegisterForQueueItemAvailable(IActivityEventListener<QueueEventArgs>)

Registers a subscriber to the QueueItemAvailable event.

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))

Parameters

eventListener
IActivityEventListener<QueueEventArgs>

A subscriber for QueueEventArgs that implements the IActivityEventListener<T> interface.

Exceptions

eventListener is a null reference (Nothing in Visual Basic).

Applies to

RegisterForQueueItemAvailable(IActivityEventListener<QueueEventArgs>, String)

Registers a subscriber to the QueueItemAvailable event.

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)

Parameters

eventListener
IActivityEventListener<QueueEventArgs>

A subscriber for QueueEventArgs that implements the IActivityEventListener<T> interface.

subscriberQualifiedName
String

The QualifiedName of the activity that is subscribing to the QueueItemAvailable event or a null reference (Nothing in Visual Basic).

Exceptions

eventListener is a null reference (Nothing).

Remarks

If the qualified name of the subscribing activity is supplied by subscriberQualifiedName, it is returned in WorkflowQueueInfo.SubscribedActivityNames of WorkflowQueueInfo associated with this queue when WorkflowInstance.GetWorkflowQueueData is called.

Applies to