[This is preliminary documentation and is subject to change.]
Namespace: ContentStudio.Document.Subscription.EventHandler
Assembly: CSSubscriptionEventHandler (in CSSubscriptionEventHandler.dll) Version: 1.0.0.0 (1.0.0.0)
Parameters
- subscriber
- Type: ContentStudio.Document.Subscription.EventHandlerSubscriptionInformation
The subscriber to validate.
Return Value
Type: Booleantrue if the subscriber is valid and should receive a message, otherwise, false
The event handler reads activated subscribers only but in some scenarios there can be a need for more fine grained control over which subscribers should reciever messages. For example, in the document to send there is a meta data that indicates that only a group of subscribers should receive a message. The implementation could then look at the passed in subscriber, query an external storage too see whether this subscriber should receive the actual message. By returning false a message will not be sent to the subscriber.
Note |
---|
If this method returns false the message will not be sent out to the subscriber. |