Autoplay
Autocomplete
Previous Lesson
Complete and Continue
.NET Core Dependency Injection From Start to Finish
Course Introduction
Introduction (0:52)
What is Dependency Injection (19:16)
Why is Dependency Injection important (4:59)
What This Course Covers (7:09)
What This Course Does Not Cover (3:16)
Who This Course is for (4:24)
The Basics
Introduction (0:57)
Creating a Blazor Server Project (4:47)
Reviewing Startup (8:13)
Creating a Demo Class (1:59)
Adding a Class to Dependency Injection (1:43)
Referencing a DI Object in a Blazor Page (5:26)
Referencing a DI Object in Another Class (12:16)
Scope
Introduction (0:35)
Transient (2:15)
Singleton (5:16)
Scoped (5:20)
Using Interfaces
Introduction (0:32)
Referencing an Interface (3:56)
Why Use an Interface (20:36)
Multiple Implementations (7:42)
Identifying Specific Interface Types (9:30)
Advanced Topics
Introduction (0:50)
Registering Groups of Services (6:23)
Service Registration Methods (11:08)
TryAdd Option (6:26)
Best Practices
Introduction (0:39)
Disposing of Services (10:14)
Avoid the Service Locator Pattern (11:49)
Be Careful of Scope (7:19)
Frequently Asked Questions
Introduction (0:28)
Can I Have Multiple Items with One Interface? (4:45)
Can I Have Other Constructor Parameters? (11:00)
Can I Have Multiple Constructors? (1:06)
Can I Pass In Values to My Constructors Besides Class Instances? (5:10)
Do I Put Every Class In My DI System? (10:44)
Dependency Injection In Common Project Types
Introduction (0:35)
Console App (20:23)
Worker Service (7:32)
WinForms (.NET Core) (13:34)
WPF (.NET Core) (15:38)
ASP.NET Core (6:43)
Blazor WebAssembly (4:29)
Azure Function (9:47)
Course Conclusion
Conclusion (1:01)
Service Registration Methods
Lesson content locked
If you're already enrolled,
you'll need to login
.
Enroll in Course to Unlock