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

Refactor DI configuration in IServiceCollectionExtensions #22

Merged
merged 2 commits into from
Dec 31, 2024

Conversation

erenken
Copy link
Owner

@erenken erenken commented Dec 31, 2024

Updated the dependency injection setup in the IServiceCollectionExtensions.cs file. Changed the registration of SensorJsonConverterFactory from singleton to scoped, allowing it to be instantiated per request. Retained the singleton registration for IAPIHttpClient, which was also moved and re-added for clarity.

Updated the dependency injection setup in the `IServiceCollectionExtensions.cs` file. Changed the registration of `SensorJsonConverterFactory` from singleton to scoped, allowing it to be instantiated per request. Retained the singleton registration for `IAPIHttpClient`, which was also moved and re-added for clarity.
@erenken erenken merged commit 9004bad into main Dec 31, 2024
2 of 3 checks passed
@erenken erenken deleted the work/updateNet9 branch December 31, 2024 07:08
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.

1 participant