TinyMessengerHub

StockSharp.Xaml.Charting.Common.Messaging

Messenger hub responsible for taking subscriptions/publications and delivering of messages.

実装: IEventAggregator, ITinyMessengerHub

メソッド

PublishAsync``1(T)

Publish a message to any subscribers asynchronously

message
Message to deliver
PublishAsync``1(T, AsyncCallback)

Publish a message to any subscribers asynchronously

message
Message to deliver
callback
AsyncCallback called on completion
Publish``1(T)

Publish a message to any subscribers

message
Message to deliver
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

戻り値: 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

戻り値: 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

戻り値: 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

戻り値: 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.

戻り値: 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

戻り値: 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

戻り値: 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

戻り値: 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