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

Merged

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"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 15 out of 15 changed files in this pull request and generated no comments.

@AndriySvyryd AndriySvyryd reopened this Jan 30, 2025
@AndriySvyryd AndriySvyryd requested a review from a team as a code owner January 30, 2025 00:23
@AndriySvyryd AndriySvyryd merged commit f629519 into dotnet:main Jan 30, 2025
5 of 7 checks passed
@AndriySvyryd
Copy link
Member

Thanks for your contribution!

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

Successfully merging this pull request may close these issues.

InMemory: Don't rebuild the Model is when the database root changes
3 participants