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:
[ Ссылка ]
🛑 Don't forget to subscribe to my channel for more cool content: [ Ссылка ]
🔗 Links
Sample code repo: [ Ссылка ]
Dependency Injection for Absolute Beginners Video: [ Ссылка ]
Dependency Injection Playlist: [ Ссылка ]
⏱ 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 Conversion
04:06 - Using Constructor Injection
06:01 - Inject View Model
09:04 - Outro
🎥 Video edited with Camtasia (ref): [ Ссылка ]
🙋♂️ Also find my...
Blog: [ Ссылка ]
All the rest: [ Ссылка ]
#dotnetmaui #maui #dependencyinjection #dotnet #csharp
This Is How Simple Dependency Injection is in .NET MAUI
Теги
.net mauidotnet maui.net 6.net maui example.net maui tutorial.net 6 xamarindotnet maui tutorialdependency injectiondotnet maui getting started.net dependency injection tutorial.net dependency injectionmicrosoft extensions dependency injectiongeneric host builder.net 6.0.net 6 maui previewdotnet 6hands on.net maui mobiledependency injection cinversion of controlmaui dependency injectionmaui dependency injection example