MessageBusManager MembersDH.Messaging Documentation

[This is preliminary documentation and is subject to change.]

The MessageBusManager type exposes the following members.
Methods

  NameDescription
Public methodStatic memberAddMessage T 
Broadcast message to all subscribers of the specified type and key
Public methodStatic memberClearSubscriptionService
Removes every message bus registered with the service. GameObjects will still contain their subscription components but will no longer be subscribed.
Public methodStatic memberMessageKeyHasSubscribers T 
Determine whether there are subscribers for a specific message type and key
Public methodStatic memberRemoveSubscribers T 
Remove all subscribers of the specified message type and message key
Public methodStatic memberRemoveSubscriptionType T 
Remove the message bus and all subscriptions for the specified type. To recreate the bus, components will need to Subscribe.
Public methodStatic memberSubscribe T 
Subscribe to messages of the specified Type and Message Key
Public methodStatic memberUnsubscribe T 
Removes the supplied subscription for the specified message key
Public methodStatic memberUnsubscribeFromAllKeys(IMessageSubscription)
Removes the specified subscription when "T" is unavailable
Public methodStatic memberUnsubscribeFromAllKeys T (MessageSubscription T )
Checks all bus queues of message type T for the specified subscription and removes it.
Back to Top
See Also