I see Prism`s eventaggregator always and only used with GetEvent which is very odd. I am used to the old CAB event system - now using Mediator implementation from Marlon Grech - where I have defined string constants that way I do not have to create extra classes to fire/wrap my data if its a simple int or value type.
[MediatorMessageSink(MediatorMessages.AddSchoolclass, ParameterType = typeof(int))]
public void OnSchoolclassAdded(int schoolclassId)
{
// do stuff with schoolclassId
}
How can I do the same with the eventaggregator from Prismn