Dependency Injection In ASP.NET Core 6 Web Api Using C# 10 and Visual Studio 2022 Tutorial

Описание к видео Dependency Injection In ASP.NET Core 6 Web Api Using C# 10 and Visual Studio 2022 Tutorial

This tutorial shows how to use dependency injection in ASP.NET Core 6 Web API using C# 10 and Visual Studio 2022. The dependency injection is called as inversion of control and is a architectural best practice. Dependency injection helps in creating loose coupling in a project. This is done by the in built resolver in .NET 6. It helps in unit testing your code by passing different instances.

You can download the full code from below:
https://github.com/tutorpraveen/DemoA...

You can download Visual studio 2022 from the link below:
https://visualstudio.microsoft.com/do...

---------Contents-----------
0:00 Intro
0:23 Create a Web API project
2:25 Create new DI object
6:04 Run without implementing DI
6:50 Add Dependency Injection code
9:15 Run after implementing DI
9:40 Benefits of Dependency Injection
11:31 Types of Dependency Injection instances
12:53 ILogger instantiation

Комментарии

Информация по комментариям в разработке