Before I start on the manuscript workflow stories, I wanted to split out the manuscript entry view from the job module into it's own module. I then wanted the job module to fire an event when it opened the job details view, so that the new manuscript module knew when to open and embed the manuscript entry view.
The event aggregator mechanism provided by the prism library is quite straightforward. However I did run into a problem that when I published an event, the subscriber didn't pick it up. The issue was down to weak references and the fact that the module instance is garbage collected almost straight after initialisation.
Here's an article that explains the situation:
http://neverindoubtnet.blogspot.co.uk/2009/05/prism-event-aggregator-subscription.html
No comments:
Post a Comment