CommunityToolkit / CommunityToolkit/MVVM-Samples
MVVM Toolkit Sample App - Reddit Service example wrongly uses IOC class
Open
- Dominant language
- No language data
- Stars
- 1.4k
- Forks
- 265
- PR merge metrics
- No merged PRs in 30d
Description
In the samples app, in the Putting Things Together section, the example follows a process whereby services are created, registered in the app.xaml.cs and then injected into the viewmodels via constructor injection.
On the Reddit Service example the `SubredditWidgetViewModel` gets the `IRedditService` from the IOC.Default instance
```
///
/// Gets the instance to use.
///
private readonly IRedditService RedditService = Ioc.Default.GetRequiredService
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.