Use dependency injection in more places
@deansheather ci sta già lavorando.
Dal 8/5/2025.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
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.
- Lingua principale
- C#
- Stelle
- 29
- Fork
- 12
- Merge medio
- 4h 15m
- PR unite (30g)
- 2
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di coder/coder-desktop-windows
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
coder/coder-desktop-windows#166 ·
-
CoderVPN Unsigned Apertabug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 52/100
coder/coder-desktop-windows#179 · 3 commenti ·
-
bug coder-desktop networking
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
coder/coder-desktop-windows#177 · 2 commenti ·
-
bug coder-desktop
coder/coder-desktop-windows#171 · 1 commento · 1 assegnatario ·
-
bug github-sync
Difficoltà 4/5 3-5 giorni Idoneità per principianti 38/100
coder/coder-desktop-windows#170 ·
Tutte le issue di coder/coder-desktop-windows
Issue simili
-
bug needs response
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
Adyen/adyen-dotnet-api-library#1869 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
difficulty/starter 🚀 good first issue kind/bug platform/ios 🍎 project/non-ui ⚙️ triage/untriaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
unoplatform/uno#24650 ·
-
area-ai untriaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
dotnet/extensions#7783 ·
-
untriaged
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
dotnet/dotnet-api-docs#13095 ·