Compartilhar via


MessageReceiver.OnTryReceive Método

Definição

Sobrecargas

OnTryReceive(TrackingContext, IEnumerable<Int64>, TimeSpan, IEnumerable<BrokeredMessage>)

Executa a ação try receive.

OnTryReceive(TrackingContext, Int32, TimeSpan, IEnumerable<BrokeredMessage>)

Executa a ação try receive.

OnTryReceive(TrackingContext, IEnumerable<Int64>, TimeSpan, IEnumerable<BrokeredMessage>)

Executa a ação try receive.

protected virtual bool OnTryReceive (Microsoft.ServiceBus.Tracing.TrackingContext trackingContext, System.Collections.Generic.IEnumerable<long> sequenceNumbers, TimeSpan timeout, out System.Collections.Generic.IEnumerable<Microsoft.ServiceBus.Messaging.BrokeredMessage> messages);
abstract member OnTryReceive : Microsoft.ServiceBus.Tracing.TrackingContext * seq<int64> * TimeSpan * seq -> bool
override this.OnTryReceive : Microsoft.ServiceBus.Tracing.TrackingContext * seq<int64> * TimeSpan * seq -> bool
Protected Overridable Function OnTryReceive (trackingContext As TrackingContext, sequenceNumbers As IEnumerable(Of Long), timeout As TimeSpan, ByRef messages As IEnumerable(Of BrokeredMessage)) As Boolean

Parâmetros

trackingContext
TrackingContext

TrackingContext a ser usado.

sequenceNumbers
IEnumerable<Int64>

Os recibos.

timeout
TimeSpan

O tempo limite.

messages
IEnumerable<BrokeredMessage>

[out] As mensagens.

Retornos

true se for bem-sucedido, false se falhar.

Aplica-se a

OnTryReceive(TrackingContext, Int32, TimeSpan, IEnumerable<BrokeredMessage>)

Executa a ação try receive.

protected virtual bool OnTryReceive (Microsoft.ServiceBus.Tracing.TrackingContext trackingContext, int messageCount, TimeSpan serverWaitTime, out System.Collections.Generic.IEnumerable<Microsoft.ServiceBus.Messaging.BrokeredMessage> messages);
abstract member OnTryReceive : Microsoft.ServiceBus.Tracing.TrackingContext * int * TimeSpan * seq -> bool
override this.OnTryReceive : Microsoft.ServiceBus.Tracing.TrackingContext * int * TimeSpan * seq -> bool
Protected Overridable Function OnTryReceive (trackingContext As TrackingContext, messageCount As Integer, serverWaitTime As TimeSpan, ByRef messages As IEnumerable(Of BrokeredMessage)) As Boolean

Parâmetros

trackingContext
TrackingContext

TrackingContext a ser usado.

messageCount
Int32

Número de mensagens.

serverWaitTime
TimeSpan

O tempo de espera do servidor antes de atingir o tempo limite.

messages
IEnumerable<BrokeredMessage>

[out] As mensagens.

Retornos

true se for bem-sucedido, false se falhar.

Aplica-se a