Click or drag to resize

IMessenger Interface

Interface to define a Messenger.

Namespace:  Enkoni.Framework.UI.Mvvm
Assembly:  Enkoni.Framework.UI (in Enkoni.Framework.UI.dll) Version: 1.3.0.1
Syntax
public interface IMessenger
Methods
  NameDescription
Public methodDeregisterTMessage(Object)
Deregisters a message recipient for a given type of messages. Other message types will still be transmitted to the recipient (if it registered for them previously).
Public methodDeregisterTMessage(Object, ActionTMessage)
Deregisters a message recipient for a given type of messages, for a given action. Other message types will still be transmitted to the recipient (if it registered for them previously).
Public methodDeregisterTMessage(Object, ActionTMessage, Object)
Deregisters a message recipient for a given type of messages, for a given action and a given token. Other message types will still be transmitted to the recipient (if it registered for them previously). Other actions that have been registered for the message type TMessage, for the given recipient and other tokens (if available) will also remain available.
Public methodRegisterTMessage(Object, ActionTMessage)
Registers a recipient for a type of TMessage. The action parameter will be executed when a corresponding message is sent.

Registering a recipient does not create a hard reference to it, so if this recipient is deleted, no memory leak is caused.

Public methodRegisterTMessage(Object, ActionTMessage, Boolean)
Registers a recipient for a type of TMessage. The action parameter will be executed when a corresponding message is sent.

Registering a recipient does not create a hard reference to it, so if this recipient is deleted, no memory leak is caused.

Public methodRegisterTMessage(Object, ActionTMessage, Boolean, Object)
Registers a recipient for a type of TMessage. The action parameter will be executed when a corresponding message is sent.

Registering a recipient does not create a hard reference to it, so if this recipient is deleted, no memory leak is caused.

Public methodSendTMessage(TMessage)
Sends a message to registered recipients. The message will reach only recipients that registered for this message type using one of the Register methods.
Public methodSendTMessage(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.
Top
See Also