Statistics
The Highest Post







Statistics
Count 20
Avg 21.00
Min 21
Max 21
Asp.Net Core Top questions

Details



Peter Agyekum Can you explain Service Lifetime in AspNet Core? Built-in IoC container manages the lifetime of a registered service type. It automatically disposes a service instance based on the specified lifetime. The built-in IoC container supports three kinds of lifetimes: Singleton: IoC container will create and share a single instance of a service throughout the application's lifetime. Transient: The IoC container will create a new instance of the specified service type every time you ask for it. Scoped: IoC container will create an instance of the specified service type once per request and will be shared in a single request.