Hello,
I have a CustomerListViewModel and a OrderListViewModel. In the latter I select an order to delete it or I create a new one. In both situations my CustomerListViewModel and the Messenger must register to the type IOrder:
Messenger.Default.Register<IOrder>(this, AddOrder);
Messenger.Default.Register<IOrder>(this, DeleteOrder);
In the OrderListViewModel I do send the customer to be deleted/added:
Messenger.Default.Send<IOrder>(MyOrderObject);
Now both Actions AddOrder and DeleteOrder gets surely executed, how can I differentiate ?