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

Mention that service scope should be created for each request when injecting a custom service provider #328

Open
habbes opened this issue Sep 6, 2024 · 0 comments

Comments

@habbes
Copy link
Contributor

habbes commented Sep 6, 2024

When customers create a custom service provide to configure customer services to pass to IODataResponseMessage and pass to ODataMessageWriter, for example when changing the default JSON writer, it's one obvious that a custom service scope should be created for each request because AddDefaultODataServices(). When a service scope is not created, the scoped service instances end being shared across requests, which can lead to data races.

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

1 participant