Closed vvdb-architecture closed 1 year ago
This PR is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 14 days.
The INotification
interface is also there to prevent mistakes. Not publishing requests or sending notifications. I don't want to go back on that just to enable tuples.
INotification
is an unnecessary constraint. It's absence does not prevent the correct functioning ofINotificationHandler
/INotificationPublisher
.This avoids the creation of a specific type for each notification type, and allows us to define handlers using value tuples:
... and then call them using a syntax like: