Visual Studio 2012 / .NET 4.5

W10 Understanding Dependency Injection and Those Pesky Containers

08/21/2013

10:45am - 12:00pm

Level: Intermediate

Miguel Castro

Miguel Castro

MRD

President

Melvicorp LLC

Learn about dependency injection from concept to implementation, and understand how it works and what problems it solves.

Dependency Injection is one of those terms that advanced programmers throw out with an expectation and assumption of full understanding on the part of the receiver. However, I constantly get asked by attendees, students, and clients to please recommend a good DI product and show them how to use it; and when I proceed to start talking about the subject, it becomes immediately apparent that many don't even know what they're asking about. It's easy to get infatuated by a cool buzz phrase, especially when you hear so many others using it. But to truly understand something you need to start by understanding the problem spaces that it is trying to solve. So let's bring you totally up to speed then. In this session, I'll explain dependency injection from concept to implementation, and use raw code samples to show you how it works and what problems it solves. Then I'll get into what a DI container is and some of the characteristics of the ones that are out there, including MEF. I'll end by showing you implementation examples in three different platforms.

You will learn:

  • Software decoupling and its advantages.
  • How the concept of DI works - registration and resolving.
  • Demo of several DI containers.