The IMessageConsumer type exposes the following members.
Methods
Name | Description | |
---|---|---|
Close |
Closes the message consumer.
| |
Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.) | |
Receive()()()() |
Waits until a message is available and returns it
| |
Receive(TimeSpan) |
If a message is available within the timeout duration it is returned otherwise this method returns null
| |
ReceiveNoWait |
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
Name | Description | |
---|---|---|
Receive<(Of <<'(T>)>>)()()()() | Overloaded.
Receives the message from the destination for this consumer. The object must be de-serializable from XML.
(Defined by MessageConsumerExtensions.) | |
Receive<(Of <<'(T>)>>)(TimeSpan) | Overloaded.
Receives the message from the destination for this consumer. The object must be de-serializable from XML.
(Defined by MessageConsumerExtensions.) | |
ReceiveNoWait<(Of <<'(T>)>>) |
Receives the message from the destination for this consumer. The object must be de-serializable from XML.
(Defined by MessageConsumerExtensions.) |
Properties
Name | Description | |
---|---|---|
ConsumerTransformer |
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
Name | Description | |
---|---|---|
Listener |
An asynchronous listener which can be used to consume messages asynchronously
|