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

Associate the DatabaseRoot with the scoped options instance and not the singleton options. #34477

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

koenigst
Copy link
Contributor

  • Remove the DatabaseRoot from the InMemoryOptionsExtension service provider equality condition.
  • Remove the DatabaseRoot from the InMemorySingletonOptions.
  • Resolve the IInMemoryStore in a scoped service (IInMemoryStoreProvider) instead of a singleton service (IInMemoryStoreCache).
  • Fall back to the DatabaseRoot stored in a singleton service (IInMemoryDatabaseRootCache) if the options does not specify one.

Fixes #34476

…he singleton options.

- Remove the DatabaseRoot from the InMemoryOptionsExtension service provider equality condition.
- Remove the DatabaseRoot from the InMemorySingletonOptions.
- Resolve the IInMemoryStore in a scoped service (IInMemoryStoreProvider) instead of a singleton service (IInMemoryStoreCache).
- Fall back to the DatabaseRoot stored in a singleton service (IInMemoryDatabaseRootCache) if the options does not specify one.

Fixes dotnet#34476
@koenigst
Copy link
Contributor Author

@dotnet-policy-service agree company="Zühlke Engineering AG"

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

Successfully merging this pull request may close these issues.

Model is rebuilt when the database root changes
2 participants