Use dependency injection in more places
@deansheather がすでに取り組んでいます。
2025年5月8日 から。
評価
この issue はまだ評価されていません。
説明
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.
class MyClass(ISomethingProvider somethingProvider)
{
public ChildClass CreateChild(string myParam)
{
return new ChildClass(somethingProvider, myParam);
}
}
Also the yet to be merged remote directory picker contains an instance of this too.
- 主要言語
- C#
- スター
- 29
- フォーク
- 12
- 平均マージ
- 4時間 15分
- マージ済み PR(30日)
- 2
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
coder/coder-desktop-windows のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
coder/coder-desktop-windows#166 ·
-
CoderVPN Unsigned オープンbug
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
coder/coder-desktop-windows#179 · コメント 3 件 ·
-
bug coder-desktop networking
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
coder/coder-desktop-windows#177 · コメント 2 件 ·
-
bug coder-desktop
coder/coder-desktop-windows#171 · コメント 1 件 · 担当者 1 名 ·
-
bug github-sync
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
coder/coder-desktop-windows#170 ·
coder/coder-desktop-windows の issue をすべて見る
似ている issue
-
core dependencies
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
-
bug frontend good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
NavigationViewItemAutomationPeer implements IInvokeProvider but never advertises the Invoke pattern オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
unoplatform/uno#24629 ·
-
agentic-workflows Needs: Triage :mag: State: In-PR
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
Down / Waiting for removal
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100