Experior provides an infrastructure for sending messages between objects.
In the Developer samples catalog an example of how to do this can be found.
The basic steps are;
Core.Communication.Internal.AddListener(object listener, RecieveMessage method)
For example.
Core.Communication.Internal.AddListener(this, ReceiveMethod);
Where a method like this should be provided.
void ReceiveMethod(object sender, object reciever, object message, bool broadcast)
2. Send a message to a known receiver.
Core.Communication.Internal.SendMessage(object sender, object reciever, object message)
Broadcast a message to all listeners.
Core.Communication.Internal.BroadcastMessage(object sender, object message)
Broadcast a message to all listeners of a specific type.
Core.Communication.Internal.BroadcastMessage(object sender, Type recieverType, object message)
Broadcast a message to all listeners of a specific type (FullName).
Core.Communication.Internal.BroadcastMessage(object sender, string recieverTypeFullName, object message)
3. When an object should stop listen or is disposed it should be removed.
Core.Communication.Internal.RemoveListener(object listener)
Note: The specified delegate of the reciever is executed synchronously.
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |