SALES: 1-800-867-1380
This topic has not yet been rated - Rate this topic

MessageReceiver.OnTryReceive Method (TrackingContext, IEnumerable<Int64>, TimeSpan, IEnumerable<BrokeredMessage>)

Executes upon calling the TryReceive operation.

Namespace:  Microsoft.ServiceBus.Messaging
Assembly:  Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)
protected virtual bool OnTryReceive(
	TrackingContext trackingContext,
	IEnumerable<long> sequenceNumbers,
	TimeSpan timeout,
	out IEnumerable<BrokeredMessage> messages
)

Parameters

trackingContext
Type: Microsoft.ServiceBus.Tracing.TrackingContext
The context information associated by a transaction tracking this operation.
sequenceNumbers
Type: System.Collections.Generic.IEnumerable<Int64>
The collection of unique numbers assigned to messages, by the Service Bus.
timeout
Type: System.TimeSpan
The time span the operation waits before it times out.
messages
Type: System.Collections.Generic.IEnumerable<BrokeredMessage>
When this method returns, contains the collection of messages received.

Return Value

Type: System.Boolean
true indicating that this method operation succeeded; otherwise, false.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.