WorkflowQueue.RegisterForQueueItemAvailable Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Regista um subscritor no QueueItemAvailable evento.
Sobrecargas
| Name | Description |
|---|---|
| RegisterForQueueItemAvailable(IActivityEventListener<QueueEventArgs>) |
Regista um subscritor no QueueItemAvailable evento. |
| RegisterForQueueItemAvailable(IActivityEventListener<QueueEventArgs>, String) |
Regista um subscritor no QueueItemAvailable evento. |
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.