Message with information about the sender

Topics: Questions
Jan 9, 2013 at 1:00 PM

Hello again.

I try the messaging. One question: How to send messages with parameters. Do I have to send them in the tag?

Or is there a better way?

Jan 11, 2013 at 7:43 PM

The tag is not a way to send additional information. The tag is to "tag" a message. So, if you have a message with string data, you can register multiple instances via the tags.

The TMessage generic argument is the type that is passed to the listeners. For example, you can put in any class there. Just create your own DTO (Data Transfer Objects) to communicate between sender and receiver.

Jan 11, 2013 at 7:44 PM

For more information, see this documentation:

http://catel.catenalogic.com/index.html?messaging_message_mediator.htm

Jan 14, 2013 at 7:57 AM

Thanks for your answer. Yes in the meantime I found the solution.