Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Use dependency injection in more places #80

Open
Assignees
deansheather
@deansheather

Description

@deansheather

In some places where we need to pass parameters that aren't DI-able, we are using a pattern of DI-ing the fields to the "parent" and then passing them to the new child without using DI.

Ideally we use DI as much as possible and not pass stuff down. We may need to use factories to accomplish this.

E.g.

classMyClass(ISomethingProvidersomethingProvider){publicChildClassCreateChild(stringmyParam){returnnewChildClass(somethingProvider,myParam);}}

RootFrame.Content=newFileSyncListMainPage(ViewModel,this);

Also the yet to be merged remote directory picker contains an instance of this too.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp