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