WorkflowQueue.RegisterForQueueItemAvailable Método

Definición

Registra un suscriptor en el QueueItemAvailable evento.

Sobrecargas

Comentarios

Puede usar los métodos sobrecargados RegisterForQueueItemAvailable para registrar un suscriptor para el QueueItemAvailable evento. El QueueItemAvailable evento se usa para notificar a los suscriptores que se ha entregado un elemento (de forma asincrónica) a este WorkflowQueue.

RegisterForQueueItemAvailable(IActivityEventListener<QueueEventArgs>)

Registra un suscriptor en el QueueItemAvailable evento.

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

Parámetros

eventListener
IActivityEventListener<QueueEventArgs>

Suscriptor para QueueEventArgs que implemente la IActivityEventListener<T> interfaz.

Excepciones

eventListener es una referencia nula (Nothing en Visual Basic).

Se aplica a

RegisterForQueueItemAvailable(IActivityEventListener<QueueEventArgs>, String)

Registra un suscriptor en el QueueItemAvailable evento.

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)

Parámetros

eventListener
IActivityEventListener<QueueEventArgs>

Suscriptor para QueueEventArgs que implemente la IActivityEventListener<T> interfaz.

subscriberQualifiedName
String

El QualifiedName de la actividad que se suscribe al evento /QueueItemAvailable o una referencia nula (Nothing en Visual Basic).

Excepciones

eventListener es una referencia nula (Nothing).

Comentarios

Si el nombre completo de la actividad de suscripción se proporciona mediante subscriberQualifiedName, se devuelve en WorkflowQueueInfo.SubscribedActivityNames de WorkflowQueueInfo asociado a esta cola cuando WorkflowInstance.GetWorkflowQueueData se llama a .

Se aplica a