Software Architecture: Dependency Injection for C# Devs

Learn Dependency Injection techniques along with an IoC-framework (DI-Container). Grow Architecture applying DI.

4.55 (398 reviews)
Udemy
platform
English
language
Software Engineering
category
instructor
Software Architecture: Dependency Injection for C# Devs
5,983
students
5.5 hours
content
Jul 2020
last update
$54.99
regular price

What you will learn

Deeply understand the concepts of Dependency Injection and Inversion of Control

Apply Dependency Inversion Principle (DIP) in practice

Understand the concept of DI-Containers (IoC-Containers)

Build a trivial IoC-Container on your own

Apply existing IoC-Containers (frameworks)

Refactor your code by applying DI coming up with significantly improved Architecture

Write unit tests (this course includes introduction to Unit Testing)

Apply AOP (aspect-oriented programming) techniques

Why take this course?

Build a solid foundation in software architecture applying Dependency Injection with IoC-Containers

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. These are the frameworks which perform dependency injection automatically. You just need to set one up in the application root (an extremely important notion which you'll learn about in the course) and after that, it will resolve all the dependencies it knows about in the runtime.

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. It provides solid theoretical base reinforced by practical material.   

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

  • DI-related Anti-Patterns & Refactorings: 
    Control Freak, Hidden Dependencies, Temporal Coupling,
    Constructor Over-Injection and how to avoid it,
    Ambient Context, Facade Service, Property Injection vs Bastard Injection, Cyclic Dependencies

  • Refactoring Example of an existing code base applying Dependency Injection

  • How to reap the fruits of DI

  • DI-Containers (IoC-Containers):
    Overview, Unity, Late Binding with Unity, Aspect-Oriented Programming (AOP), Interception vs Pure DI vs AOP Tools,

  • Setting up a bootstrapper with Unity, Autofac and Castle.Windsor

  • Introduction to Unit Testing

Teaching Approach

No fluff, no ranting, no beating the air. I respect your time. The course material is succinct, yet comprehensive. All the important concepts are covered. Particularly important topics are covered in-depth.

Take this course, and you will be satisfied. 

Screenshots

Software Architecture: Dependency Injection for C# Devs - Screenshot_01Software Architecture: Dependency Injection for C# Devs - Screenshot_02Software Architecture: Dependency Injection for C# Devs - Screenshot_03Software Architecture: Dependency Injection for C# Devs - Screenshot_04

Reviews

Scott
August 27, 2021
Yes, so far it's understandable and relevant for both my overall level of experience and unfamiliarity with this area.
Stefan
August 3, 2021
This course is well structured, teached with great competence and presented with a good balance of theoretical basics wich practical examples. Well done Mr. Spock :-), appreciate very much your work!
Miguel
October 8, 2020
This course is all about Mark Seeman articles/book/examples and felt that the author could not use its own examples and words to explain the topics
Camilo
August 25, 2020
The code examples before and after for all of the examples are needed to understand the refactors. The last part was clear but would be great to have the code exercises.
Petr
August 1, 2020
Good course, lector is acknowledged about the topic and seems to be passionate about helping people become better programmers. I would just appreciate more engagement with students, to motivate me to be more active during the course - some challenges, don't copy & paste code so the student is motivated to write stuff and think about what he/she is writing. More challenges. In general, I learned a lot and got nice overview about the topic.
Pablo
June 10, 2020
Buen curso, recomendable, el autor explica de manera detallada pero a la vez no demasiado extensa. Su inglés se entiende muy bien para una persona cuyo idioma nativo no es inglés.
Petros
March 23, 2020
The speaker has really deep knowledge of dependency injection. I would like the course to be even more practical with more code examples of DOs and DON'Ts and best practices regarding dependency injection.
Ajinkya
December 27, 2018
Too much Theoretical explanation. The examples could be more realistic scenarios. The volume is too low. A bit of boring.
Anonymized
October 7, 2018
I loved the real world example and most importantly the credit you gave to Seeman and Martin for their work is worth appreciation
Steven
May 27, 2018
This course covered a very important category of software engineering topics (DI, DI patterns and anti-patterns, AOP) that are difficult to learn elsewhere and presented them in an easy to understand format, with good examples and lots of guidance on usage. I think the instructor is doing an excellent job in helping teach important cutting edge skills and I look forward to seeing more great courses from him in the future.
El
April 8, 2018
L'injection de dépendance est clairement expliquée dans ce cours Ses rapports avec les conteneurs d'injection de dépendance (IOC) décrits de façon détaiilée. Les détails internes de tels IOC, le processus résolution des dépendances sont illustrées de façon pratique. Elias ne manque pas de s'appuyer au passage sur des autorités connues du génie logiciel Bertrand Meyer, Uncle Bob, Mark Seeman etc. Ce qui confère encore plus de crédibilité à ce cours. Merci Elias.
Hosus
March 7, 2018
Great introduction info dependency injection. Completely reformatted by thinking about design and architecture of applications. Really insightful.
Joseph
January 18, 2018
Excellent information!! The instructor did a great job of explaining dependencies and giving real world examples of why you want to use decoupling when ever possible and how to accomplish this using DI and (IoC).
Dave
January 12, 2018
Great course! Direct and to the point. Clear explanations and great pace. I had heard of IoC and worked briefly with Autofac but never really grasped how things worked behind the scene. This course covers a good variety of examples including older and newer examples of IoC frameworks. The course is listed as designed for all skill levels. If you are new to C# programming and learning different architectures, you will want to make sure you have a firm grasp on generics before going through this course. Thanks for a great class! Now on to MVVM in WPF...
Joern
September 7, 2017
Course is work in progress... At the end of the course the order of the lectures is a bit mixed up, which was a bit confusing first. The course itself gives a good introduction to Dependency Injection, IoC and DIP.

Charts

Price

Software Architecture: Dependency Injection for C# Devs - Price chart

Rating

Software Architecture: Dependency Injection for C# Devs - Ratings chart

Enrollment distribution

Software Architecture: Dependency Injection for C# Devs - Distribution chart
1324854
udemy ID
8/18/2017
course created date
11/20/2019
course indexed date
Bot
course submited by