In ASP.NET Core dependency injection, what is the appropriate service lifetime i need to choose based on the requirement?
In ASP.NET Core dependency injection, what is the appropriate service lifetime i need to choose based on the requirement I need proper example for each service lifetime.. how should I structure my code to ensure proper transaction management within those scopes?
The service collection cannot be modified because it is read-only
I am using ASP.NET Core 8. I’m trying to resolve a dependency at app start up and then use it to manually register a second dependency.