 | EventBusTEvent, TClassifier, TSubscriberSubscribe Method |
Adds the specified subscriber to the list of subscribers that listen for particular events on the bus.
Namespace:
Akka.Event
Assembly:
Akka (in Akka.dll) Version: 1.2.3.129 (1.2.3.129)
Syntaxpublic virtual bool Subscribe(
TSubscriber subscriber,
TClassifier classifier
)
abstract Subscribe :
subscriber : 'TSubscriber *
classifier : 'TClassifier -> bool
override Subscribe :
subscriber : 'TSubscriber *
classifier : 'TClassifier -> bool
Parameters
- subscriber
- Type: TSubscriber
The subscriber that is being added. - classifier
- Type: TClassifier
The classifier of the event that the subscriber wants.
Return Value
Type:
Booleantrue if the subscription succeeds; otherwise
false.
See Also