Skip to content
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

Need an example of how to implement ITokenchanges on databasechanges asp.net core #10383

Closed
pratishthap opened this issue Jan 14, 2019 · 4 comments

Comments

@pratishthap
Copy link

Hi All,
I have been trying to utilize changetoken for notifying when the database changes and hence drive the configuration from database instead of configuration file. But i am unable to trigger the onchanges on itoken when i make any changes to database. The only time the customdatabase provider get exceuted it on the startup.Please help in giving a solution.I could not find an implementation of the same anywhere

@guardrex
Copy link
Collaborator

Hello @pratishthap ... Your question is similar to an ask for an EF Core configuration provider that would do the same thing (see: #9681). The engineers decided not to pursue that at this time.

Your best bet is to contact devs on a support forum, such as Stack Overflow, or a support chat, such as Slack or Gitter. Here on the docs repo, we just work docs issues. We don't have the staffing to provide support. Search around ... I think (guess) that you would find some implementations for using a database for configuration.

@pratishthap
Copy link
Author

None have been able to provide an answer to it. I saw some sample code but TokenChange.OnChanges() is not firing when database changes. I am unable to find how registering and configuring of CustomDatabaseConfigurationprovider is being done

@pratishthap
Copy link
Author

Can you please tell me who had asked for EF Core configuration provider so that i can ask the person

@guardrex
Copy link
Collaborator

Phil Reed ... #9681

... and there might be more requests in the engineering and docs repo issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants