Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

LinkedIn Learning

ASP.NET Core in .NET 6: Dependency Injection

via LinkedIn Learning

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Learn about dependency injection in .NET and its advantages. Features ASP.NET Core examples using C# on DI configuration and implementation.

Syllabus

Introduction
  • Dependency injection overview
  • What you should know
  • Setting up your environment
1. What Is Dependency Injection?
  • What is dependency injection?
  • Service lifetimes
2. Configuring Dependency Injection in ASP.NET Core
  • Setting up the services
  • How to configure dependency injection
  • Other dependency injection configuration methods
3. Using Dependency Injection in ASP.NET Core
  • How to inject services into a controller
  • Inject services in other components of a web application
  • How to set up a hosted service
  • Disposing of a service
  • Challenge: Set up an application using dependency injection
  • Solution: Set up an application using dependency injection
4. Common Errors
  • Forgetting to add a service
  • Injecting services with different service lifetimes
  • Circular dependency
  • Ambiguous constructors
Conclusion
  • Continue your ASP.NET Core journey

Taught by

David Grace

Reviews

4.5 rating at LinkedIn Learning based on 372 ratings

Start your review of ASP.NET Core in .NET 6: Dependency Injection

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.