예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CommandApp{TDefaultCommand}"/> class.
 /// </summary>
 /// <param name="registrar">The registrar.</param>
 public CommandApp(ITypeRegistrar?registrar = null)
 {
     _app = new CommandApp(registrar);
     _app.GetConfigurator().SetDefaultCommand <TDefaultCommand>();
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CommandApp{TDefaultCommand}"/> class.
 /// </summary>
 /// <param name="registrar">The registrar.</param>
 public CommandApp(ITypeRegistrar registrar = null)
 {
     _app = new CommandApp(registrar, typeof(TDefaultCommand));
 }