Published: Monday 11 September 2023
With dependency injection in ASP.NET Core, there are three different service lifetimes that can be used:
Most services can be injected directly into other services regardless of their lifetime. However, there is scenario where a service with a particular lifetime cannot inject a service with another service lifetime.
Can you find out which service lifetimes they are?