A Quick Guide to Transient, Scoped, and Singleton in C#.
In C#, the Transient, Scoped, and Singleton scopes are options for controlling the lifetime of objects which are created by dependency injection.
Transient
Transient objects are created each time they are requested. This means that if a Transient is injected into multiple consumers, each consumer will receive a separate instance of the object.
Scoped
Scoped objects are created once per request. This means that if...
далее...