Use of .net events in event aggregator funcionality

Topics: Prism v2 - Silverlight 3, Prism v2 - WPF 3.5
Nov 3, 2009 at 4:27 PM


Sorry by my question because I'm a freshman in prism but my question is:

Why aren't we using the .net events in the event aggregator funcionality?

Huge thanks



Nov 3, 2009 at 9:13 PM

Hi Javier,

One of the reasons that led the Prism team to not use .NET events, is that Prism events (mainly for Cross-Module communication) do not address the same scenario as .NET events, for example, Prism events do not require a sender (as it does not matter who published the event).

Another, but yet related reason, if .NET events had been used for Event Aggregator, developers might have fallen into confusion and would have tried to use the events as normal events (relying on the sender which is not the case). If for any reason, events need to be “filtered” based on some criteria, the payload can provide any necessary information.

Please let me know if this helps.

Damian Schenkelman