Hi,
I see that SendMessage allow you to send a message with commands. Does this work the same for TransmitMessage?
Hi,
I see that SendMessage allow you to send a message with commands. Does this work the same for TransmitMessage?
No.
VideoOS.Platform.Messaging.MessageCommunication.TransmitMessage works between processes, this is achieved by communication through the Event Server.
VideoOS.Platform.EnvironmentManager.SendMessage (and VideoOS.Platform.EnvironmentManager.PostMessage) works within the environment where it runs, for example within the Smart Client where it runs.
I guess their different nature partially explains why SendMessage has been implemented with return and TransmitMessage not.
Looking at an example using the VideoOS.Platform.Messaging.MessageCommunication.TransmitMessage. “MessageCommunication.ProvideCurrentStateRequest” can be sent but in order to receive a response you need to subscribe on “MessageCommunication.ProvideCurrentStateResponse”
Recommended read
If you want to see Message Communication in use explore the Chat sample.
Hi @Bo Ellegård Andersen (Milestone Systems) ,
The initial idea was to send custom messages between different environments. Instead of having the receiver send a response after receiving the message, I thought I could use something similar to SendMessage where I can get the response straight instead of listening for a response.