EventBroker wireup not happening across modules

Topics: CAB & Smart Client Software Factory
Oct 10, 2006 at 6:47 AM
originally posted by: kovlab49

I'd thought that one of the advantages of CAB was that it's EventBroker allowed my subscribers do not have to wire themselves up to publishers, that as long as publisher and subscriber are alive, the EventBroker will hook them up.

But I have publisher in one module and subscriber in another module and the hookup does not appear to be happening. I know both objects are alive, but haven't verified the order they're constructed (I thought that it wasn't supposed to matter). Does anybody know if this does matter, or if it doesn't, why it's not happening for me?
Oct 10, 2006 at 7:50 AM
originally posted by: kovlab49

Aha, I found 2 things that were failing:

1) My publisher wasn't being created by the CAB (shame on me!)
2) My subscriber wasn't registering with PublicationScope.Global
Oct 14, 2006 at 3:52 AM
originally posted by: sajeevmadu

Also remember to declare your subscriber as public. I had declared it as protected and it compiled and linked fine but the subscriber was not added to the subscription list for that topic until I declared it public.