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

配置或服务发生变更时,应用如何监听 #86

Open
gonghuilie opened this issue Apr 2, 2022 · 1 comment
Open

配置或服务发生变更时,应用如何监听 #86

gonghuilie opened this issue Apr 2, 2022 · 1 comment

Comments

@gonghuilie
Copy link

配置或服务发生变更时,应用如何监听?

@kklldog
Copy link
Collaborator

kklldog commented Apr 2, 2022

服务端配置变化的时候会实时刷新client的配置同时触发change事件,但是监听不到具体哪个项目变化了。如果要监听具体哪个项目变化了,可以使用core配置系统的IOptionsMonitor模式进行监听。
服务还是预览版,没有对应的change事件抛出。

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

2 participants