I have various Modules which can send and receive different Event<T>
. for example
class A : ISub<Event<Picture>>
class B : ISub<Event<SomeObject>>
class C : IPub<Event<Picture>>
...
etc.
Is there a proper way (existing framework) to dynamicly assign instances of these classes to different instances of EventAggregator<T>
? For example by registering the pub/subs to a non generic EventController which then handles the connections between the modules independenly and makes it somehow easy to manage from wpf?
Aucun commentaire:
Enregistrer un commentaire