The instructions on this page result in a code error.
await ConfigurationRefresher.Refresh();
'IConfigurationRefresher' does not contain a definition for 'Refresh' and no accessible extension method 'Refresh' accepting a first argument of type 'IConfigurationRefresher' could be found (are you missing a using directive or an assembly reference?)
To confirm - I had completed the quickstart Create an Azure functions app with Azure App Configuration as specified in the prerequisites
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@dgard1981 , Thanks for brining this to our attention. We will investigate it further and update you shortly.
@dgard1981 the document was created with a prerelease version of the library. The API was changed since then in the stable version release. Please use IConfigurationRefresher.TryRefreshAsync() instead.
Thanks for catching this. I will make an update of the document.
@zhenlan Thanks, I can confirm that configurationRefresher.TryRefreshAsync() works.
@zhenlan - Thank you for providing your insights.
@dgard1981 - I hope @zhenlan has answered your question.
I have updated the doc and We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.
Most helpful comment
@dgard1981 the document was created with a prerelease version of the library. The API was changed since then in the stable version release. Please use
IConfigurationRefresher.TryRefreshAsync()instead.Thanks for catching this. I will make an update of the document.