Skip to content
0:00 / 0:00

#dependencyinjection#autofac#ioccontainer

Dependency Injection

Microsoft Visual Studio

345K subscribers • 8 videos on Hallway

YouTube
  • Recommended by 3 people: 3 in engineering communities.
  • A classic. People kept recommending it from 2017 to 2021.
  • Presented by Miguel Castro
  • Made by the vendor. The company whose product it covers made or sponsored it.

Beginner. No background in the topic needed.

149K views8 years ago3 recommendations

Software designDesign patternsSoftware architecture

Miguel Castro explains the fundamentals of dependency injection and why you should use it to make applications easier to test.

In this episode, Robert is joined by Miguel Castro, who explains dependency injection, which makes it easy to resolve classes at any level in any size object hierarchy, all the while making your application much easier to test. Miguel demystifies this important technique and explains why and how you should use it in every project.

Why it's here

3 people recommend this

What people say. Recommended as a clear, easy-to-follow explanation of dependency injection with practical examples.

u/TimeRemovein r/dotnet • Recommends

On “ELI5 Dependency Injections and Constructors”

This free Microsoft video does a good job of explaining why you'd want to use DI using an example: link to this video And while it is using Autofac (rather than .Net Core's built in DI) and there's an annoying part in the middle where you're stuck looking at their backs, it is worth a watching to get a good idea of when DI would be useful.

u/DogeAmazedin r/dotnet • Recommends

On “opinions on IoC / DI for new ASP.NET Web API project?”

Here's an video, posted yesterday, about the basics of DI in general, they used Autofac, so that might be good for you to look into it. Then you can convert this to ASP.NET. link to this video

u/NotARealDeveloperin r/dotnet • Recommends

On “Dependency injection”

This video from Microsoft themselves explains it perfectly with an easy to follow example: link to this video