.NET & C# ยท ASP.NET Core
How should dependency injection lifetimes be used in production?
Use scoped for request-oriented business and data services, singleton for thread-safe application-wide services, and transient for lightweight stateless services where a new instance is appropriate.