-
Notifications
You must be signed in to change notification settings - Fork 116
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
IFeatureManager.IsAnabledAsync() doesn't get fresh information from IConfiguration in ASP.NET Framework #134
Comments
Hello @ios29A do you have a small example/repro of how you are consuming the library to help diagnose any issues?
If that is the case, then it could be the reason for seeing stale data. If you have more details on this as well that would be helpful. I am not aware of any bugs in the configuration reload pipeline on any .NET frameworks. |
Hi !
If I don't set _stale manually it's always 0, moreover I've set breakpoint on ChangeTokenConsumer delegate, and it's called in console app .NET Framework, but not in ASP.NET |
Hi, @ios29A Is this issue still existing? |
Hello !
I have a problem in ASP.NET Framework WebForms application, there IFeatureManager.IsAnabledAsync() always returns cached data, but not fresh from IConfiguration, however in test console app for .NET Framework it works well.
Both projects use .NET Framework 4.8
I've found that, ConfigurationFeatureDefinitionProvider.cs#31 ChangeTokenConsumer delegate never called after refresher.TryRefreshAsync() or RefershAsync() is executed, but under debug I can see that IConfiguration is updated with new data.
P.S. For now I have quick solution - I just reset ConfigurationFeatureDefinitionProvider._stale flag manually by using reflection, and it works, but it's very bad idea, so I need a better solution.
Any ideas why this happening ?
Thanks for the help !
The text was updated successfully, but these errors were encountered: