MicrosoftDocs / WindowsCommunityToolkitDocs

Creative Commons Attribution 4.0 International
181 stars 156 forks source link

Ioc doc needs updating #629

Open nixtar opened 2 years ago

nixtar commented 2 years ago

Since the Ioc doc was last updated the MVVM toolkit has added an Ioc class to make using DI/Ioc a lot nicer then the examples given. https://github.com/CommunityToolkit/dotnet/blob/main/CommunityToolkit.Mvvm/DependencyInjection/Ioc.cs

This makes the following statement no longer accurate: The MVVM Toolkit doesn't provide built-in APIs to facilitate the usage of this pattern, as there already exist dedicated libraries specifically for this such as the Microsoft.Extensions.DependencyInjection package, which provides a fully featured and powerful DI set of APIs, and acts as an easy to setup and use IServiceProvider.

The examples given should also be reworked with this new functionality in mind.


Document details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.