internal ConsoleApp(IHost host) { this.Host = host; this.Logger = host.Services.GetRequiredService <ILogger <ConsoleApp> >(); this.options = host.Services.GetRequiredService <ConsoleAppOptions>(); this.commands = options.CommandDescriptors; }
public ConsoleAppOptions() { CommandDescriptors = new CommandDescriptorCollection(this); }