tubeshowcase●1,658,115 videos♡ My collection 0
← Learn to Code

Learn to Code10:01

Dependency Injection Basics in .NET MAUI

dotnet ↗

From the creator

.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/maui/fundamentals/dependency-injection 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

Published 2024-09-20 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code