Prism EventAggregator difference between PubSubEvent<TPayload> Class and CompositePresentationEvent<TPayload> Class
Asked Answered
P

1

8

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.

Pavlodar answered 19/11, 2014 at 7:47 Comment(0)
C
14

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

Cowpea answered 19/11, 2014 at 7:53 Comment(1)
Thx, i think this one of the only chapters that i didnt read on this page.Pavlodar

© 2022 - 2024 — McMap. All rights reserved.