Beginners Guide to Dependency Injection for C# Developers

Learn the basics of Dependency Injection techniques.
Rating: 4.3 out of 5 (355 ratings)
12,444 students
Beginners Guide to Dependency Injection for C# Developers
Rating: 4.3 out of 5 (355 ratings)
12,444 students
Apply DIP
Understand the Concept of DI and how to apply it in practice

Requirements

  • Solid experience in C#
Description

Teaching Approach

No fluff, no ranting, no beating the air. I esteem your time. The course material is succinct, yet comprehensive. All the important concepts are covered. Particularly important topics are covered in-depth. For absolute beginners, I offer my help on Skype absolutely free, if requested.

Take this course, and you will be satisfied.

Build a solid foundation in software architecture applying Dependency Injection

In many of my courses I use techniques of Dependency Injection and each time students write me private messages saying that they don't what it is and thus they don't understand what's going on in the course I teach. This is very unfortunate from the learning perspectives.

Dependency Injection is the set of techniques that allow to supply dependencies to objects. Actually, if you have ever passed dependencies via constructors, then you applied the so-called constructor injection. Dependency Injection (DI) is simple and difficult at the same time. On one hand, DI is comprised of simple techniques and on the other hand, when we need to bring DI to the next level, we need to make things more complicated using the so-called DI or IoC (Inversion of Control) Containers.

If you still don't understand what am I talking about, just believe me, you absolutely need to know about Dependency Injection. This course will tremendously improve your understanding of how software architectures emerge. So, this course is "must watch" for anyone who still doesn't understand what is DI and IoC-Containers.

Content and Overview

This course is aimed at all kind of developers. 

The course covers:

  • Introduction to Inversion of Control:  Dependency Inversion Principle (DIP), Inversion of Control (IoC), Dependency Injection (DI), Dependencies and their types, Pure DI and IoC-Containers, Service Locator
  • The Architectural Implications of Dependency Injection
Who this course is for:
  • Any C# developer who wants to learn about Dependency Injection
Curriculum
2 sections • 19 lectures • 1h 9m total length
  • About the Course
  • Outline
  • Definition of DIP
  • Dependencies
  • Volatile and Stable Dependencies
  • Definitions of IoC and DI
  • DIP Violation Demo
  • Refactoring to a Better Design Applying DI
  • Dependency Injection Techniques
  • Architectural Implications
  • Common Smells of DIP Violation
  • Conclusion
  • Outline
  • Pure DI and IoC-Containers
  • Building a Simple IoC-Container
  • Service Locator Design Pattern
  • Demo with an IoC-Container
  • Conclusion
  • BONUS

Instructor
Software Engineer - 1000+ Reviews, Average Score - 4.5
Engineer Spock
  • 4.2 Instructor Rating
  • 6,210 Reviews
  • 53,317 Students
  • 22 Courses

I'm thankful enough for that I love what I do.

I began my career as a postgraduate student participating in Microsoft ImagineCup contest.

I've been working with .NET platform since 2003. I've been professionally architecting and implementing software for nearly 7 years, primarily based on .NET platform. I'm passionate about building rich and powerful applications using modern technologies. I'm a certified specialist in Windows Applications and Service Communication Applications by Microsoft. I'm one of the coordinators of the MSK.NET User Group in Moscow.

"If it's work, we try to do less. If it's art, we try to do more." - Seth Godin.

What I can say is that software is my art.