#651 Merge custom JSON properties across multiple ocelot.X.json configuration files using Newtonsoft's JToken merge functionality#1183
Conversation
4eb4482 to
9ec4b8d
Compare
|
Congrats, @jlukawska ! 🎉 We can go with code review now... |
|
@RaynaldM @wast |
There was a problem hiding this comment.
@jlukawska
Could you fix the issues please?
How to read CustomStrategyProperty value of the route in run-time?
|
|
||
| fileConfiguration.Aggregates.AddRange(config.Aggregates); | ||
| fileConfiguration.Routes.AddRange(config.Routes); | ||
| MergeConfig(fileConfiguration, config, isGlobal); |
There was a problem hiding this comment.
🆗 Merged config JSON goes to primaryConfigFile. And it will be serialized to ocelot.json file.
And the primary config will be attached to IConfigurationBuilder object by AddJsonFile method.
Could you show me a case how can I read this custom property inside of extension-methods for IConfigurationBuilder interface?
|
@nurhat @jlukawska User case 1Change behavior of PollyQoSProviderGiven, I wish to override behavior of the Quality of Service feature by changes in PollyQoSProvider and/or AddPolly and/or PollyCircuitBreakingDelegatingHandler classes. Question:
|
04debe6 to
7f61d01
Compare
908d84f to
0678e7a
Compare
Ready for code review ✔️
|
Closes #651
Proposed Changes