Messenger Methods |
The Messenger type exposes the following members.
Name | Description | |
---|---|---|
![]() | Cleanup | Collects the dead references registered by the messenger and removes them from the recipients list. This method will be called
automatically if CleanupInterval is greater then 0. |
![]() | DeregisterTMessage(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). |
![]() | DeregisterTMessage(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). |
![]() | DeregisterTMessage(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. |
![]() | Dispose | Disposes any resources held by this instance. |
![]() | DisposeManagedResources | Disposes all the managed resources that are held by this instance. |
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | RegisterTMessage(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. |
![]() | RegisterTMessage(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. |
![]() | RegisterTMessage(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. |
![]() | SendTMessage(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. |
![]() | SendTMessage(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. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |