Dotnet Core 6.0 above questions

1. What is the difference between Transient , Scoped and Singleton ?

Transient objects are always different; a new instance is provided to every controller and every service.

Scoped objects are the same within a request, but different across different requests.

Singleton objects are the same for every object and every request.

2. 

No comments:

Post a Comment

Pages