dotnet / dotnet/command-line-api

DI in GetSuggestions

Open
#2,036 0 comments 0 reactions 0 assignees View on GitHub
Area-Hosting and DI
Dominant language
C#
Stars
3.7k
Forks
428
PR merge metrics
No merged PRs in 30d

Description

I am using DI with the hosting package. I would like to use a service in GetSuggestions, and after looking at this at all angles I could think of, I can't figure out a way to make this work. Would someone have a hint of how this could be achieved?

The use case for having access to the host / services in GetSuggestions is for example to offer suggestions based on the configuration, or on dynamically registered services.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.