WorkflowQueue.RegisterForQueueItemAvailable Método

Definição

Regista um subscritor no QueueItemAvailable evento.

Sobrecargas

Observações

Pode usar os métodos sobrecarregados RegisterForQueueItemAvailable para registar um subscritor para o QueueItemAvailable evento. O QueueItemAvailable evento é usado para notificar os assinantes de que um item foi entregue (de forma assíncrona) a este WorkflowQueue.

RegisterForQueueItemAvailable(IActivityEventListener<QueueEventArgs>)

Regista um subscritor 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)

Regista um subscritor 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á a subscrever o evento QueueItemAvailable ou uma referência nula (Nothing em Visual Basic).

Exceções

eventListener é uma referência nula (Nothing).

Observações

Se o nome qualificado da atividade subscritora for fornecido por subscriberQualifiedName, ele é devolvido em WorkflowQueueInfo.SubscribedActivityNames de WorkflowQueueInfo associado a esta fila quando WorkflowInstance.GetWorkflowQueueData é chamado.

Aplica-se a