Just as we have Session.BindSubscription(Codeunit) Method, it seems a good addition to have an Session.BindSubscription(Interface) Method. This would increase extensibility in case of generic manual subscription.
Naturally the same goes for the UnbindSubscription method
Comments
I naturally assumed this would be a feature introduced with the addition of interfaces.I too would like this feature, because interfaces are functionally a "CodeunitRef", so it makes perfect sense to need to bind event subscriptions for them, it would also represent a performance increase due to the toggling off of event subscribers for interface implementation codeunits.This feature's absence is extremely limiting.
Category: Development
Business Central Team (administrator)
Thank you for this suggestion! Currently this is not on our roadmap. We are tracking this idea and if it gathers more votes and comments we will consider it in the future. Best regards, Business Central Team