Dependency Injection: A C# Developer'S Guide To Di Patterns
Published 5/2025
MP4 | Video: h264, 1920x1080 | Audio: AAC, 44.1 KHz
Language: English | Size: 605.01 MB | Duration: 1h 30m
Published 5/2025
MP4 | Video: h264, 1920x1080 | Audio: AAC, 44.1 KHz
Language: English | Size: 605.01 MB | Duration: 1h 30m
A Practical Introduction to Writing Loosely Coupled Code in C#
What you'll learn
Define what Dependency Injection is at a high level
Understand how the Dependency Inversion Principle (DIP) helps us write loosely coupled code
Learn the various Dependency Injection Design Patterns
Understand Lifetime Management and Interception
Learn the fundamentals of the .NET Dependency Injection container
Requirements
Prior programming experience with C# is required for taking this course
Description
Are you a C# developer with some Object-Oriented Programming (OOP) and C# basics under your belt? Learn what Dependency Injection is and how it works with my course Dependency Injection: A C# Developer's Guide to DI Patterns!In this course, we will first define Dependency Injection, understand and apply the Dependency Inversion Principle, and explore the various Dependency Injection Design Patterns, before taking a look at the .NET DI container itself.Who Should Take This Course?This course is ideal for C# developers who have some basic knowledge of Object Oriented Programming (OOP) and C#, and want to understand what dependency injection is and how it works.This course is also suitable for experienced C# developers who want to take their skills to the next level by mastering the basics of Dependency Injection in .NET.Software RequiredI am using .NET 9 and Visual Studio 2022 IDE for this course.What You Will LearnBy the end of this course, you will have gained an understanding of the following topics:1. Define what Dependency Injection is.2. The Dependency Inversion Principle.3. Tight coupling and some of its issues.4. Apply the Dependency Inversion Principle to enable loose coupling in our code.5. The various Dependency injection Design Patterns6. Lifetime Management and Interception7. The fundamentals of the .NET DI container
Overview
Section 1: Introduction
Lecture 1 Welcome to the Course!
Lecture 2 Tools Required for this course
Lecture 3 Source code
Section 2: The Foundation
Lecture 4 Defining Dependency Injection
Lecture 5 What is a Dependency
Lecture 6 Dependency Inversion Principle and its Violation
Lecture 7 Tight Coupling and its issues
Lecture 8 Applying the Dependency Inversion Principle
Lecture 9 Volatile and stable dependencies
Section 3: DI Design Patterns
Lecture 10 Constructor Injection
Lecture 11 Method Injection
Lecture 12 Property Injection
Lecture 13 What we covered so far
Lecture 14 Composition Root
Lecture 15 The First Dimension of DI - Object Composition
Section 4: Lifetime Management and Interception
Lecture 16 The Second Dimension of DI - Lifetime Management
Lecture 17 Singleton Lifetime
Lecture 18 Scoped Lifetime
Lecture 19 Transient Lifetime
Lecture 20 The Third Dimension of DI - Interception
Section 5: The .NET DI Container
Lecture 21 The Basics
Lecture 22 Different ways of registering services
Lecture 23 Register groups of services with extension methods
Lecture 24 Registering multiple implementations of the same service type
Lecture 25 Captive Dependencies
Lecture 26 Creating a scope manually
Lecture 27 Scope Validation
Lecture 28 Disposable dependencies
Section 6: Conclusion
Lecture 29 Thank you!
Beginner C# developers who want to learn what Dependency Injection is, and how it works,Experienced C# developers who want to take their skills to the next level by mastering the basics of Dependency Injection