IEventAggregator.GetEvent(Type eventType) removed in version 2.0.1.0

Topics: Prism v2 - WPF 3.5
Jan 14, 2011 at 4:06 PM
Edited Jan 14, 2011 at 10:16 PM

It turns out that someone here added that method to the interface and re-compiled, somehow managing to include the Microsoft copyright notice with no hint that it was a private modification.  My apologies for bothering you all.

[what's below is kept for posterity; the StackOverflow post has been set up for deletion]

We have been using version 2.0.0.0 of Microsoft.Practices.Composite.dll, particularly IEventAggregator and its implementation.  In version 2.0.1.0 of the library, the non-generic overload of GetEvent, defined as

      EventBase GetEvent(Type eventType);

has been removed from the interface.  More details, including why we're using this method and my frustration that there's no trivial way to work around its removal, are in the referenced StackOverflow post.  I'm posting here because it greatly surprises me that a member of a public interface got removed during a minor-version upgrade.  My impression is that such a thing ought never ever ever ought to be done.  It's even stranger that in multiple internet searches I haven't found anyone else having trouble with this.  Comments would be much appreciated.

For a more complete discussion, see

http://stackoverflow.com/questions/4688148/microsoft-practices-composite-events-ieventaggregator-geteventtype-eventtype-re

Developer
Jan 14, 2011 at 4:52 PM

Hi,

As the source code for the Composite Application Library (including the Microsoft.Practices.Composite project) is provided with Prism, one possibility would be to modify the IEventAggregator interface and its concrete implementation, and then compile the assembly and use it in your projects, or directly reference the modified CAL projects in your solution, as it is done in the QuickStarts and Reference Implementation.

If you believe this kind of changes should be avoided in future versions, you could add a work item in the Issue tracker, so that the product team is notified about this.

I hope you find this helpful.

Guido Leandro Maliandi
http://blogs.southworks.net/gmaliandi