The IMessageConsumer type exposes the following members.

Methods

  NameDescription
Public methodClose
Closes the message consumer.
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Public methodReceive()()()()
Waits until a message is available and returns it
Public methodReceive(TimeSpan)
If a message is available within the timeout duration it is returned otherwise this method returns null
Public methodReceiveNoWait
Receives the next message if one is immediately available for delivery on the client side otherwise this method returns null. It is never an error for this method to return null, the time of Message availability varies so your client cannot rely on this method to receive a message immediately after one has been sent.

Extension Methods

  NameDescription
Public Extension MethodReceive<(Of <<'(T>)>>)()()()()Overloaded.
Receives the message from the destination for this consumer. The object must be de-serializable from XML.
(Defined by MessageConsumerExtensions.)
Public Extension MethodReceive<(Of <<'(T>)>>)(TimeSpan)Overloaded.
Receives the message from the destination for this consumer. The object must be de-serializable from XML.
(Defined by MessageConsumerExtensions.)
Public Extension MethodReceiveNoWait<(Of <<'(T>)>>)
Receives the message from the destination for this consumer. The object must be de-serializable from XML.
(Defined by MessageConsumerExtensions.)

Properties

  NameDescription
Public propertyConsumerTransformer
A Delegate that is called each time a Message is dispatched to allow the client to do any necessary transformations on the received message before it is delivered.

Events

  NameDescription
Public eventListener
An asynchronous listener which can be used to consume messages asynchronously

See Also