Reload Routes and Clusters onChange in Config File #2334
-
Hello @community, The ProxyConfigProvider Class
ProxyConfig Class
ServiceConfiguration class
Config.xml
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
YARP is going to listen to the cancellation token on the Config Provider to tell it when the config has changed. You seem to have that line commented out.
Returning a new change token isn't going to do anything as the property that hands it to YARP doesn't have any notification semantics. Its the cancellation of the token that YARP is already holding on to that will have any effect. |
Beta Was this translation helpful? Give feedback.
I had a quick look to your repo, there is too many things that are commented out to really see what's wrong. I suggest you look at using directly the
InMemoryConfigProvider
, it might be simpler.