-
Notifications
You must be signed in to change notification settings - Fork 1.7k
#651 Merge custom JSON properties across multiple ocelot.X.json
configuration files using Newtonsoft's JToken
merge functionality
#1183
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
base: develop
Are you sure you want to change the base?
Conversation
4eb4482
to
9ec4b8d
Compare
Congrats, @jlukawska ! 🎉 We can go with code review now... |
@RaynaldM @wast |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🆗 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
c216cdf
to
b458f0f
Compare
908d84f
to
0678e7a
Compare
Closes #651
Proposed Changes