-
Notifications
You must be signed in to change notification settings - Fork 853
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IClusterChangeListener singleton ? #613
Comments
Ideally the internal sealed class ClusterManager should be made non-sealed public class so a developer could derive from it and implement addition logic/rules etc. i.e. if a cluster is added/removed we'd like a message set to a remote alerting/monitoring systems |
Multiple listeners are supported:
Singleton has to do with object lifetime (it lives for the lifetime of the app), not how many there are. See #125 for related discussions about proxy health.
You should be able to do that with the IClusterChangeListeners. |
@Tratcher odd; as when I've tried to add a IClusterChangeListeners to the DI system; it never gets created? or called, I will review add get back or create a repo to reproduce. |
Triage: We are pretty sure it works (we're using it for HealthChecks). Can you please provide (simplified) repro for us? |
Triage: No repro, closing. Feel free to reopen if there is more evidence. Thanks! |
I would like to register additional IClusterChangeListerners to the DI system; so I may hook into these events and update the Microsoft.Extensions.Diagnostics.HealthChecks and subsequently the health UI reports will display cluster status.
The text was updated successfully, but these errors were encountered: