Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
Dependency injection for .NET APIs [Pt 7] | Back-end Web Development with .NET for Beginners
Play lesson

Back-end Web Development with .NET for Beginners - Dependency injection for .NET APIs [Pt 7] | Back-end Web Development with .NET for Beginners

4.0 (0)
6 learners

What you'll learn

This course includes

  • 1 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

View full playlist: https://aka.ms/dotnet/beginnervideos/youtube/webapi Get Started with .NET in VS Code: https://aka.ms/dotnet/get-started/vscode This video covers support for dependency injection in ASP.NET Core and minimal APIs. Dependencies are objects that other objects can depend on; in ASP.NET Core, these are typically implemented as C# classes and interfaces. Dependencies are stored in the service container. Injection is the process by which a referenced dependency is resolved from the service container. This can happen when a class is constructed or in route handlers. In this video, Safia will utilize dependency injection to centralize the logic associated with the task management into a concrete implementation of ITaskService. Resources: Follow along: https://aka.ms/dotnet/beginnervideos/repo Dependency injection in ASP.NET Core: https://learn.microsoft.com/aspnet/core/fundamentals/dependency-injection?view=aspnetcore-8.0 For an explanation of ASP.NET Core and .NET, check out the first video in this series: https://youtu.be/OmUuR4GiwIE Chapters: 00:00 - What is dependency injection? 01:12 - Define an interface and create a concrete implementation of the tasks service 02:43 - Register the service in the service container 04:12 - Use the service 06:20 - Validate that app still works 07:25 - Outro Connect with .NET: Blog: https://aka.ms/dotnet/blog Twitter: https://aka.ms/dotnet/twitter TikTok: https://aka.ms/dotnet/tiktok Mastodon: https://aka.ms/dotnet/mastodon LinkedIn: https://aka.ms/dotnet/linkedin Facebook: https://aka.ms/dotnet/facebook Docs: https://learn.microsoft.com/dotnet Forums: https://aka.ms/dotnet/forums 🙋‍♀️Q&A: https://aka.ms/dotnet-qa 👨‍🎓Microsoft Learn: https://aka.ms/learndotnet #dotnet #webapi #aspnetcore #visualstudio #visualstudiocode #vscode

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere