Subscribe Method (TinyMessengerHub)
Subscribe to a message type with the given destination and delivery action.
All references are held with strong references
All messages of this type will be delivered.
Overload List
Overload | Description |
---|---|
Subscribe<TMessage>(Action<TMessage>) | Subscribe to a message type with the given destination and delivery action. All references are held with strong references All messages of this type will be delivered. |
Subscribe<TMessage>(Action<TMessage>,ITinyMessageProxy) | Subscribe to a message type with the given destination and delivery action. Messages will be delivered via the specified proxy. All references (apart from the proxy) are held with strong references All messages of this type will be delivered. |
Subscribe<TMessage>(Action<TMessage>,Boolean) | Subscribe to a message type with the given destination and delivery action. All messages of this type will be delivered. |
Subscribe<TMessage>(Action<TMessage>,Boolean,ITinyMessageProxy) | Subscribe to a message type with the given destination and delivery action. Messages will be delivered via the specified proxy. All messages of this type will be delivered. |
Subscribe<TMessage>(Action<TMessage>,Func<TMessage,Boolean>) | Subscribe to a message type with the given destination and delivery action with the given filter. All references are held with WeakReferences Only messages that "pass" the filter will be delivered. |
Subscribe<TMessage>(Action<TMessage>,Func<TMessage,Boolean>,ITinyMessageProxy) | Subscribe to a message type with the given destination and delivery action with the given filter. Messages will be delivered via the specified proxy. All references (apart from the proxy) are held with WeakReferences Only messages that "pass" the filter will be delivered. |
Subscribe<TMessage>(Action<TMessage>,Func<TMessage,Boolean>,Boolean) | Subscribe to a message type with the given destination and delivery action with the given filter. All references are held with WeakReferences Only messages that "pass" the filter will be delivered. |
Subscribe<TMessage>(Action<TMessage>,Func<TMessage,Boolean>,Boolean,ITinyMessageProxy) | Subscribe to a message type with the given destination and delivery action with the given filter. Messages will be delivered via the specified proxy. All references are held with WeakReferences Only messages that "pass" the filter will be delivered. |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also