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