dotnet / dotnet/command-line-api
Question: Usage models with Service Collection (not using Generic Host)
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- C#
- Estrellas
- 3.7k
- Forks
- 428
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
I have been using a different cli library, that has some great features, and is very usable, but lacks functionality such as tab completion (per `dotnet`suggest`) However it does work well with using a raw ServiceCollection and provides the ability to inject those services into commands.
Im assessing the lift to migrate.
I see that `command-line-api` has Host Builder support (via `.UseHost` by scanning issues - open and closed) bit not specific documentation.
Are there any examples out there of just using the ServiceCollection with DI support (the other library uses reflection)?
One hopes in-time that (as other libraries) the DI integration is not tightly integrated such that one can use different services containers (albeit in the other library once would need to write a custom `Convention` vs the included DI one to achieve this) ?
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
El issue menciona ServiceCollection y el punto de entrada .UseHost de command-line-api, pero no nombra archivos ni pruebas. Primero revisa el soporte existente para .UseHost y cualquier ejemplo de uso; luego determina si se admite la inyección de dependencias directa de ServiceCollection y qué documentación sería necesaria; se considera terminado cuando se proporcione un ejemplo claro o se responda a la pregunta de integración.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- csharp
- Área
- cli, documentation
- Tipo de issue
- Documentación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 20/100