dotnet / dotnet/command-line-api
Extend IHostBuilder configuration based on command
Open
- Dominant language
- C#
- Stars
- 3.7k
- Forks
- 428
- PR merge metrics
- No merged PRs in 30d
Description
It is currently not possible to configure the `IHostBuilder` depended on the executed command.
I could not find an elegant pattern to register some `IHostedService` based on the command.
`IHost` is managing the registered IHostedService's
Example:
`my-cli get something` //no background service required and registered
`my-cli serve` //IHostedService should be registered
Contributor guide
Assessment
This issue has not been assessed yet.