6

Closed

Messenger no longer accepts null message

description

I just upgraded to "MvvmLightLibsPreview.4.1.0" using Nuget. There appears to be a breaking change with the messenger.

My original code was:

MessengerInstance.Send<object>(null, MessageToken.MarkedScoreChanged);

This used to work but now receives a "null reference exception".

Fortunately, there's a workaround:

MessengerInstance.Send<string>(string.Empty, MessageToken.MarkedScoreChanged);

What I really would like is to just be able to send a token without a message. Something like:

MessengerInstance.Notify(MessageToken.MarkedScoreChanged).
Closed Oct 13, 2014 at 1:57 PM by lbugnion

comments