Difference between AddSingleton vs AddScoped vs AddTransient ♥

preview_player
Показать описание
Recognizing the complete life cycle of DI (Dependency Injection) is necessary in .Net Core apps. DI is a method for accomplishing loose bonding between objects and their dependencies. Generally, the classes always declare their own dependencies through the constructor, enabling them to follow the rule of Explicit Dependencies. This process is known as constructor injection.

☛ AddScoped
☛ AddSingleton
☛ AddTransient
Рекомендации по теме
welcome to shbcf.ru