Compartir a través de


MessageReceiver.OnTryReceive Método

Definición

Sobrecargas

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

Ejecuta la acción try receive.

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

Ejecuta la acción try receive.

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

Ejecuta la acción 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 que se va a usar.

sequenceNumbers
IEnumerable<Int64>

Recibos.

timeout
TimeSpan

Tiempo de espera.

messages
IEnumerable<BrokeredMessage>

[out] Los mensajes.

Devoluciones

True si se realiza correctamente, false si se produce un error.

Se aplica a

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

Ejecuta la acción 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 que se va a usar.

messageCount
Int32

Número de mensajes.

serverWaitTime
TimeSpan

Tiempo de espera del servidor antes de que se agote el tiempo de espera.

messages
IEnumerable<BrokeredMessage>

[out] Los mensajes.

Devoluciones

True si se realiza correctamente, false si se produce un error.

Se aplica a