returning true means that the message has been handled.
On Mon, Mar 21, 2011 at 3:44 AM, Dirk Schuermans
<[email protected]>wrote:
> Could anyone tell me the difference between returning true or false in
> transport.MessageArrived in IMessageModule?
>
> I currently have the following:
>
> public class SorterModule: IMessageModule
> {
> public void Init(ITransport transport, IServiceBus bus)
> {
> transport.MessageArrived += new Func<CurrentMessageInformation,
> bool>(transport_MessageArrived);
> }
>
> private bool transport_MessageArrived(CurrentMessageInformation arg)
> {
> // When return false here the message gets consumed, return true it
> doesn't but what happens with the message?
> }
> }
>
> Kind regards,
>
> Dirk
>
> --
> You received this message because you are subscribed to the Google Groups
> "Rhino Tools Dev" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/rhino-tools-dev?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"Rhino Tools Dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rhino-tools-dev?hl=en.