I am sending message from the ViewItemWpfUserControl to the Background plugin like this:
_messageCommunication.TransmitMessage(new Message(ABBPlugin_v1Definition.MsgToBackGround) { Data = “StartModbus” }, null, null, null);
In the background i am receiving the message like this
:_messageCommunication = MessageCommunicationManager.Get(EnvironmentManager.Instance.MasterSite.ServerId);
_MsgHandlerObject = _messageCommunication.RegisterCommunicationFilter(MsgHandlerBackground, new CommunicationIdFilter(ABBPlugin_v1Definition.MsgToBackGround));
This works, but when im trying to send a message from the BackgroundPlugin to the ViewItemWpfUserControl it does not work. The setup for sending and receiving is the same (with different messageId).
I can receive the message im sending from the backgroundPlugin in the backgroundPlugin, but cant receive it in the ViewItemWpfUserControl.
Not sure what is wrong, because I have gotten this to work earlier.