Sign in to confirm you’re not a bot
This helps protect our community. Learn more
Dependency Injection Basics in .NET MAUI
189Likes
5,681Views
Sep 202024
.NET Multi-platform App UI (.NET MAUI) provides in-built support for using dependency injection. Dependency injection is a specialized version of the Inversion of Control (IoC) pattern, where the concern being inverted is the process of obtaining the required dependency. With dependency injection, another class is responsible for injecting dependencies into an object at runtime. Let's take a look! Chapters: 00:00 - Introduction 00:40 - Sample application overview 01:50 - Explaining why to add dependency injection to the application 02:47 - Registering dependencies for the application 05:30 - Using registered dependencies in pages and ViewModels 06:50 - Demonstrating the updated application 08:05 - Walkthrough of a more complex example with multiple dependencies 09:19 - Wrap up and suggested resources Resources: Documentation: https://learn.microsoft.com/dotnet/ma... 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

Follow along using the transcript.

dotnet

325K subscribers