Im trying to get my EventAggregator in Prism working based on this example MSDN.
After having some problems that where caused by mixing up class references i would like to know the difference of:
PubSubEvent Class MSDN
and
CompositePresentationEvent Class MSDN
I couldnt find a more detailed information. And both references say Defines a class that manages publication and subscription to events.
So far so good. But when to use them or which of them? What is the difference?
Maybe somebody can help me on this.
PubSubEvent
is a newer class replacing CompositePresentationEvent
which was deprecated.
The classes in the Events namespace were made obsolete but still exist in Prism 5.0. You should use the classes from the Prism.PubSubEvents portable class library with the Prism.PubSubEvents namespace. The PubSubEvent class replaces the CompositePresentationEvent class.
Source: http://msdn.microsoft.com/en-us/library/ff921144(v=pandp.40).aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With