Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Using messaging Center with "sender" type as message content.

$
0
0

We have been using the messaging center by having the "sender" represent the content of the message, rather than the actual "sending" class.

For instance:
MessagingCenter.Send(new AnalyticsTrackedMessage(pageModel, actionName), string.Empty);

Will this get us into trouble (as far as how MessagingCenter tracks references, etc?)

We were trying to avoid having subscribers have knowledge of "who" sent a message (and we wanted to publish the same message from multiple locations in a few cases.)

Should we be using TinyMessenger instead to get these semantics ?

Thanks for any insights -


Viewing all articles
Browse latest Browse all 77050

Trending Articles