This Is How Simple Dependency Injection is in .NET MAUI
source link: https://www.youtube.com/watch?v=wkgbvMlrMhU
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
This Is How Simple Dependency Injection is in .NET MAUI
If you have been working with dependency injection in other .NET solutions like ASP.NET, this should look pretty familiar! In this video we will learn how to use dependency injection in your .NET MAUI app. And also, a little pro-tip on how to anticipate with your Xamarin app... Tune in!
💝 Join this channel to get access to perks: https://www.youtube.com/channel/Geral...
🛑 Don't forget to subscribe to my channel for more cool content: https://www.youtube.com/GeraldVerslui...
🔗 Links Sample code repo: https://github.com/jfversluis/MauiDep...
Dependency Injection for Absolute Beginners Video: https://www.youtube.com/watch?v=tTJet... Dependency Injection Playlist: https://www.youtube.com/watch?v=tTJet...
⏱ Timestamps 00:00 - Intro 00:08 - Sample App Outline 01:05 - Generic Host Builder in .NET MAUI 02:18 - Register Dependencies in Container 03:33 - Pro-Tip For Forms to .NET MAUI Conversio 04:06 - Using Constructor Injection 06:01 - Inject View Model 09:04 - Outro
🎥 Video edited with Camtasia (ref): https://techsmith.z6rjha.net/AJoeD
🙋♂️ Also find my... Blog: https://blog.verslu.is Twitch: https://twitch.tv/jfversluis All the rest: https://jfversluis.dev
Show lessShow more
23 Comments
Read more 3 hours ago
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK