Click or drag to resize

IMessengerSendTMessage Method (TMessage, Object)

Sends a message to registered recipients. The message will reach only recipients that registered for this message type using one of the Register methods.

Namespace:  Enkoni.Framework.UI.Mvvm
Assembly:  Enkoni.Framework.UI (in Enkoni.Framework.UI.dll) Version: 1.3.0.1
Syntax
void Send<TMessage>(
	TMessage message,
	Object token
)
where TMessage : IMessage

Parameters

message
Type: TMessage
The message to send to registered recipients.
token
Type: SystemObject
A token for a messaging channel. If a recipient registers using a token, and a sender sends a message using the same token, then this message will be delivered to the recipient. Other recipients who did not use a token when registering (or who used a different token) will not get the message. Similarly, messages sent without any token, or with a different token, will not be delivered to that recipient.

Type Parameters

TMessage
The type of message that will be sent.
See Also