First question, Do we only need one Event Receiver per program? I mean the “ServiceName” property only needs to point to a service on the service library in order to receive all/any event sinks? (just to confirm).
Second, and the suggestion…
We have a method to register event handlers on the EventReceiver that follows the syntax:
procedure RegisterEventHandler(const EventID : string; const EventHandler : TObject);
So e.g. I go and register two different “forms” to receive multiple sinks and implement their respective interfaces on both.
Due to some reason, I need to unregister one of the EventIds from a form, but leave the other ones. There is no method to do that, there is no
procedure UnRegisterEventHandler(const EventID : string; const EventHandler : TObject);
I can only unregister all the existing EventIds, or completly remove the Object from receiving events. I can NOT specifically say I want to stop receiving events on this form for this specific eventID. Just like we did with the registration.
I’m using Delphi Tokyo.