What You Need to Know About Dependency Injection in ASP.NET Core MVC

Aura Theme July 17, 2024
Video Thumbnail
Aura Theme Logo

Aura Theme

View Channel

About

Hi! Welcome to the C# .NET World. Feel free to visit my portfolio: https://auratheme.gumroad.com/ to try the live demo of the web app that I have created🌞 I hope the tutorials & projects helped you! Thanks for visiting my YouTube channel! 💌 Little Message to Inspire You All the projects are built completely solo—after my full-time job, usually after 6pm, and sometimes 10pm (after overtime). It’s non-stop coding every day!🚀 Sometimes you might notice there's no new video on my channel, seems like I’m taking a break. But actually, I’m coding behind the scenes every single day, working hard on new projects to release on Gumroad.✨ I may have limited time, but with consistency and passion, I’ve managed to create and launch these projects. So, you can do it too! Start now, stay consistent, and never underestimate what you can achieve in your own time.💪 Of course, rest is important too. When you're feeling tired, it's totally okay to take a break and recharge! 🔋

Video Description

What You Need to Know About Dependency Injection in ASP.NET Core MVC In this video, we dive deep into dependency injection (DI) in ASP.NET Core MVC. Learn the fundamentals of dependency injection, like how to register the services in program.cs, how to use it in a controller, and more. Full source code: https://auratheme.gumroad.com/l/dependencyinjection Useful resources: SMTP for free: https://refer.mailersend.com/ssCXOLl0uOzl Timestamp: 0:00 Introduction of dependency injection 2:04 Registering services in Program.cs 2:54 AddTransient 3:30 AddScoped 4:05 AddSingleton 4:52 Using services in controller 6:23 Circular dependency injection (Common error)

You May Also Like