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.
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.