MsmqBindingElementBase.ReceiveContextEnabled Propriedade
Definição
Obtém ou define um valor que indica se o contexto de recebimento para processar mensagens em filas está habilitado.Gets or sets a value that indicates whether receive context for processing messages in queues is enabled.
public:
property bool ReceiveContextEnabled { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("receiveContextEnabled", DefaultValue=Mono.Cecil.CustomAttributeArgument)]
public bool ReceiveContextEnabled { get; set; }
[<System.Configuration.ConfigurationProperty("receiveContextEnabled", DefaultValue=Mono.Cecil.CustomAttributeArgument)>]
member this.ReceiveContextEnabled : bool with get, set
Public Property ReceiveContextEnabled As Boolean
Valor da propriedade
true Se o contexto de recebimento para o processamento de mensagens em filas estiver habilitado; caso contrário, false .true if receive context for processing messages in queues is enabled; otherwise, false.
- Atributos
Comentários
Quando habilitado, um serviço pode "inspecionar" uma mensagem na fila para começar a processá-la e, se algo der errado e uma exceção for lançada, ela permanecerá na fila.When this is enabled, a service can "peek" a message on the queue to begin processing it, and, if anything goes wrong and an exception is thrown, it remains on the queue. Os serviços também podem "bloquear" mensagens para tentar novamente o processamento em um momento posterior.Services can also "lock" messages in order to retry processing at a later point in time. ReceiveContext fornece um mecanismo para "Concluir" a mensagem uma vez processada para que ela possa ser removida da fila.ReceiveContext provides a mechanism for "completing" the message once processed so it can be removed from the queue. As mensagens não são mais lidas e regravadas em filas pela rede, e as mensagens individuais não estão saltando em diferentes instâncias de serviço durante o processamento.Messages are no longer being read and re-written to queues over the network, and individual messages aren't bouncing across different service instances during processing.