Skip to content

[Task] Add DI dependency injection for missing parts #1222

@ChenYiLins

Description

@ChenYiLins

A long time ago, we used Template Studio to create the App project. Although its code seems very outdated to us now (as it hasn't been updated for a long time), the structure within the template was great! It built a solid foundation capable of supporting large-scale projects. However, while refactoring AutoDarkMode, in our pursuit of speed, we hardly followed the DI and MVVM patterns. That is why I am starting to modify things now—to make the project more robust, moving from "functional" to "well-crafted." Bringing these non-standard elements into alignment with best practices will be much better for the project's future development.

In this issue, it is used to track the part that should have been implemented by DI injection.

  • App/Helpers/LanguageHelper [Change to LanguageService]
  • App/Services/GeolocatorService

And find a better way to use IErrorService.

Metadata

Metadata

Assignees

Labels

area-internalInternal issue, created for transparency, could be a code taskarea-winui3Issues for winui3, version 11 or later

Type

No fields configured for Task.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions