WorkflowQueue.RegisterForQueueItemAvailable Método

Definição

Registra um assinante no QueueItemAvailable evento.

Sobrecargas

Comentários

Você pode usar os métodos sobrecarregados RegisterForQueueItemAvailable para registrar um assinante para o QueueItemAvailable evento. O QueueItemAvailable evento é usado para notificar os assinantes de que um item foi entregue (de maneira assíncrona) para isso WorkflowQueue.

RegisterForQueueItemAvailable(IActivityEventListener<QueueEventArgs>)

Registra um assinante no 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>

Um assinante para QueueEventArgs isso implementa a IActivityEventListener<T> interface.

Exceções

eventListener é uma referência nula (Nothing em Visual Basic).

Aplica-se a

RegisterForQueueItemAvailable(IActivityEventListener<QueueEventArgs>, String)

Registra um assinante no 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>

Um assinante para QueueEventArgs isso implementa a IActivityEventListener<T> interface.

subscriberQualifiedName
String

O QualifiedName da atividade que está assinando o evento QueueItemAvailable ou uma referência nula (Nothing em Visual Basic).

Exceções

eventListener é uma referência nula (Nothing).

Comentários

Se o nome qualificado da atividade de assinatura for fornecido, subscriberQualifiedNameele será retornado WorkflowQueueInfo.SubscribedActivityNamesWorkflowQueueInfo associado a essa fila quando WorkflowInstance.GetWorkflowQueueData for chamado.

Aplica-se a