dotnet / dotnet/command-line-api

Extend IHostBuilder configuration based on command

Open
#2,308 1 comment 1 reaction 0 assignees View on GitHub
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

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.