menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Programming News

>

Difference...
source image

Dev

3w

read

26

img
dot

Image Credit: Dev

Difference between AddScoped, AddTransient and AddSingleton in .netcore

  • In .NET Core, services can be registered with different lifetimes in the dependency injection (DI) container.
  • Singleton lifetime creates only one instance of the service for the entire application.
  • Scoped lifetime creates a new instance of the service for each HTTP request.
  • Transient lifetime creates a new instance of the service every time it is requested.

Read Full Article

like

1 Like

For uninterrupted reading, download the app