Skip to content
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

监听配置变化事件 #125

Closed
carlosxie opened this issue Jul 3, 2020 · 6 comments
Closed

监听配置变化事件 #125

carlosxie opened this issue Jul 3, 2020 · 6 comments

Comments

@carlosxie
Copy link

net core 里面怎样实现监听配置变化呢 像这样
ApolloConfigurationManager.Manager.GetConfig("application").Result.ConfigChanged
可以明确知道是哪个Key改动了

@pengweiqhca
Copy link
Contributor

使用IOptionsMonitor,不能监听某个key变更,但可以监听整体是否有变更。
apollo的变更监听是客户端实现的

@carlosxie
Copy link
Author

明白,监控配置变化使用IOptionsMonitor 已经能获取到

@ihenjoy
Copy link

ihenjoy commented Jul 6, 2023

明白,监控配置变化使用IOptionsMonitor 已经能获取到

如何处理的,可以共享下?

@pengweiqhca
Copy link
Contributor

@pengweiqhca pengweiqhca pinned this issue Jul 6, 2023
@ihenjoy
Copy link

ihenjoy commented Jul 25, 2023

这是监听事个ConfigurationProvider?

@pengweiqhca
Copy link
Contributor

这是监听事个ConfigurationProvider?

是的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants