TinyMessengerHub
Messenger hub responsible for taking subscriptions/publications and delivering of messages.
Implementa: IEventAggregator, ITinyMessengerHub
Métodos
PublishAsync``1(T, AsyncCallback)
Publish a message to any subscribers asynchronously
- message
- Message to deliver
- callback
- AsyncCallback called on completion
Subscribe``1(Action<T>)
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.
- deliveryAction
- Action to invoke when message is delivered
Devuelve: TinyMessageSubscription used to unsubscribing
Subscribe``1(Action<T>, 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.
- deliveryAction
- Action to invoke when message is delivered
- proxy
- Proxy to use when delivering the messages
Devuelve: TinyMessageSubscription used to unsubscribing
Subscribe``1(Action<T>, bool)
Subscribe to a message type with the given destination and delivery action. All messages of this type will be delivered.
- deliveryAction
- Action to invoke when message is delivered
- useStrongReferences
- Use strong references to destination and deliveryAction
Devuelve: TinyMessageSubscription used to unsubscribing
Subscribe``1(Action<T>, bool, 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.
- deliveryAction
- Action to invoke when message is delivered
- useStrongReferences
- Use strong references to destination and deliveryAction
- proxy
- Proxy to use when delivering the messages
Devuelve: TinyMessageSubscription used to unsubscribing
Subscribe``1(Action<T>, Func<T, bool>)
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.
- deliveryAction
- Action to invoke when message is delivered
- messageFilter
- The message filter.
Devuelve: TinyMessageSubscription used to unsubscribing
Subscribe``1(Action<T>, Func<T, bool>, 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.
- deliveryAction
- Action to invoke when message is delivered
- messageFilter
- The message filter.
- proxy
- Proxy to use when delivering the messages
Devuelve: TinyMessageSubscription used to unsubscribing
Subscribe``1(Action<T>, Func<T, bool>, bool)
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.
- deliveryAction
- Action to invoke when message is delivered
- messageFilter
- The message filter.
- useStrongReferences
- Use strong references to destination and deliveryAction
Devuelve: TinyMessageSubscription used to unsubscribing
Subscribe``1(Action<T>, Func<T, bool>, bool, 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.
- deliveryAction
- Action to invoke when message is delivered
- messageFilter
- The message filter.
- useStrongReferences
- Use strong references to destination and deliveryAction
- proxy
- Proxy to use when delivering the messages
Devuelve: TinyMessageSubscription used to unsubscribing
Unsubscribe``1(TinyMessageSubscriptionToken)
Unsubscribe from a particular message type. Does not throw an exception if the subscription is not found.
- subscriptionToken
- Subscription token received from Subscribe