Before delete and after create service endpoint notifications
Currently you can use fabricClient.ServiceManager.RegisterServiceNotificationFilterAsync to register for an event when a service has its endpoints change.
This is a good step in the right direction. But it has some flaws. The event only fires after the change has happened.
It is great to get the event after the change if the change is to add a new service endpoint.
But if the change is to remove a service endpoint, then having the change happen, then the notification causes issues.
That is because the service endpoint goes down and there is a short time where the endpoint is down and my system I update via the notifications does not know about it. So I keep hitting that endpoint (and it is not there anymore).
Please consider adding events that are "Before Change" events.