Expand Minimize
This topic has not yet been rated - Rate this topic

MessageSession.OnEndTryReceive Method

Executes the end try receive operation of the message receiver.

Namespace:  Microsoft.ServiceBus.Messaging
Assembly:  Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)
protected override bool OnEndTryReceive(
	IAsyncResult result,
	out IEnumerable<BrokeredMessage> messages
)

Parameters

result
Type: System.IAsyncResult
An IAsyncResult that references the asynchronous operation to try to receive messages.
messages
Type: System.Collections.Generic.IEnumerable<BrokeredMessage>
When this method returns, contains the received message collection.

Return Value

Type: System.Boolean
true if it succeeds; false if it fails.

This is a protected member of the abstract MessageSession class. Abstract classes are not meant to be inherited, so protected members should be ignored. The public method for OnEndTryReceive is BeginReceive.

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.