예제 #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;
 }
예제 #2
0
 public ConsoleAppOptions()
 {
     CommandDescriptors = new CommandDescriptorCollection(this);
 }