/// <summary> /// Registers all supported commands with the console application's registrar. /// </summary> /// <param name="registrar">A collection of command registrations for the application.</param> protected override void RegisterCommands(ExecutableCommandRegistrar registrar) { base.RegisterCommands(registrar); registrar.Register <string[]>("register", HandleRegistration); registrar.Register <string>("launch", HandleLaunching); }
/// <summary> /// Registers all supported commands with the console application's registrar. /// </summary> /// <param name="registrar">A collection of command registrations for the application.</param> protected override void RegisterCommands(ExecutableCommandRegistrar registrar) { base.RegisterCommands(registrar); registrar.Register <string>("listen", HandleListening); registrar.Register <string>("send", HandleSending); }