microsoft / Extensible-Digital-Content

This template is a media viewer that enables a user to interact and view media files on both Xbox console and Desktop.
MIT License
6 stars 2 forks source link

Remove the singleton pattern used in services and views. #5

Open andrewbanks17 opened 7 months ago

andrewbanks17 commented 7 months ago

Singleton Pattern Removal: Transition away from using the singleton pattern for services and views. Instead, manage services within the DataModel and require content views to take a SharedUIView as an argument, promoting better resource management and future testability.

Dependency Injection: Implementing dependency injection could resolve issues related to service and view management, enhancing testability. This requires: