Featured resource
2026 Tech Forecast
2026 Tech Forecast

1,500+ tech insiders, business leaders, and Pluralsight Authors share their predictions on what’s shifting fastest and how to stay ahead.

Download the forecast
  • Course

C# 14 Dependency Injection

Manually managing code dependencies is difficult. This course will teach you to use the built-in .NET dependency injection container to instantiate classes, resolve dependencies, and control lifetimes, so you can focus on implementing business logic.

Advanced
3h

Created by Henry Been

Last Updated May 29, 2026

Course Thumbnail
  • Course

C# 14 Dependency Injection

Manually managing code dependencies is difficult. This course will teach you to use the built-in .NET dependency injection container to instantiate classes, resolve dependencies, and control lifetimes, so you can focus on implementing business logic.

Advanced
3h

Created by Henry Been

Last Updated May 29, 2026

Get started today

Access this course and other top-rated tech content with one of our business plans.

Try this course for free

Access this course and other top-rated tech content with one of our individual plans.

This course is included in the libraries shown below:

  • Core Tech
What you'll learn

In any non-trivial C# application with multiple classes, you will quickly face the question of how to provide your classes with their dependencies. In this course, C# 14 Dependency Injection, you’ll gain the ability to use the .NET built-in dependency injection (DI) container to register services, resolve dependencies and control instance lifetimes. First, you’ll explore the IServiceCollection and IServiceProvider types; how to register and resolve types and manage reuse of instances by configuring their lifetimes. Next, you’ll discover how to manage application configuration, inject HttpClient, and manage multiple implementations of the same interface using DI. Finally, you’ll learn how to handle more complex situations like working with factories, IEnumerable, Lazy, ahead-of-time compilation, convenience registrations, and how to avoid the Service Locator pattern. When you’re finished with this course, you’ll have the skills and knowledge of the .NET built-in dependency injection container needed to design large applications using the .NET DI container with predictable construction and lifetime behavior.

C# 14 Dependency Injection
Advanced
3h
Table of contents

About the author
Henry Been - Pluralsight course - C# 14 Dependency Injection
Henry Been
17 courses 4.7 author rating 317 ratings

Henry Been is a DevOps & Azure architect from Texel, the Netherlands. He works with teams to write and deliver software to their customers. His interests are architecture, Azure, and DevOps.

2025 Forrester Wave™ names Pluralsight as a Leader among tech skills dev platforms

See how our offering and strategy stack up.

forrester wave report