-
-
Notifications
You must be signed in to change notification settings - Fork 261
Closed
Labels
enhancementhelp wantedWe would be willing to take a well-written PR to help fix this.We would be willing to take a well-written PR to help fix this.
Milestone
Description
Provide access to the CommandLineState throw the Properties on a HostBuilder will allow us to access it in scenarios where there are not DI yet, like in the ConfigureService or ConfigureAppConfiguration methods.
Solution:
Add (
var state = new CommandLineState(args); |
hostBuilder.Properties[typeof(CommandLineState)] = state
We can also create extension methods to get the CommandLineState on the IHostBuild and on HostBuilderContext .
Metadata
Metadata
Assignees
Labels
enhancementhelp wantedWe would be willing to take a well-written PR to help fix this.We would be willing to take a well-written PR to help fix this.