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

Change ISensorFactory registration to scoped lifetime #21

Merged
merged 2 commits into from
Dec 31, 2024
Merged

Conversation

erenken
Copy link
Owner

@erenken erenken commented Dec 31, 2024

Updated the registration of the ISensorFactory service in IServiceCollectionExtensions.cs from singleton to scoped. This change ensures a new instance of ISensorFactory is created for each request within the scope. Removed the factory registration for SensorJsonConverterFactory that relied on the singleton instance.

Updated the registration of the `ISensorFactory` service in `IServiceCollectionExtensions.cs` from singleton to scoped. This change ensures a new instance of `ISensorFactory` is created for each request within the scope. Removed the factory registration for `SensorJsonConverterFactory` that relied on the singleton instance.
@erenken erenken merged commit 1c659c3 into main Dec 31, 2024
2 of 3 checks passed
@erenken erenken deleted the work/updateNet9 branch December 31, 2024 06:41
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