Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

NmsTemplate.ReceiveSelectedAndConvert(String) Method

Receive a message synchronously from the default destination, but only wait up to a specified time for delivery. Convert the message into an object with a configured IMessageConverter.

This method should be used carefully, since it will block the thread until the message becomes available or until the timeout value is exceeded.

This will only work with a default destination specified!

[Visual Basic]
Public NotOverridable Overloads Sub ReceiveSelectedAndConvert( _
   ByVal messageSelector As String _
) _
    Implements INmsOperations.ReceiveSelectedAndConvert
[C#]
public object ReceiveSelectedAndConvert(
   string messageSelector
);

Parameters

messageSelector
the NMS message selector expression (or
null
if none). See the NMS specification for a detailed definition of selector expressions.

Return Value

the message produced for the consumer or

null
if the timeout expires.

Implements

INmsOperations.ReceiveSelectedAndConvert

See Also

NmsTemplate Class | Spring.Messaging.Nms.Core Namespace | NmsTemplate.ReceiveSelectedAndConvert Overload List