- 
                Notifications
    You must be signed in to change notification settings 
- Fork 50
Description
Hi.
Not sure this is the right place to post so do not hesitate to tell me.
I would like to use a retry policy (for instance with Polly) whenever a request fails. But I'm not sure the current API allows me to do this. Or I don't know how to do it :).
So what is the best way to achieve this ?
I am able to do it in the OnLoadException callback by forcing context.Source.Build(configurationBuilder).Load() and finally add it the current IConfigurationBuilder but for me we should be able to apply the policy directly on the Load method of the ConsulConfigurationProvider class, shouldn't we ?
I can also create a ConfigurationBuilder and add ConsulConfigurationSource (s) only, call the Build method, retry as long as it fails, and finally add the created IConfiguration to the ConfigurationBuilder that will be used in my StartUp (bootstrap) class.
Thx a lot and have a good day