Ejemplo n.º 1
0
 public ShellState(ICommandDispatcher commandDispatcher, ISuggestionManager suggestionManager = null, IInputManager inputManager = null, ICommandHistory commandHistory = null, IConsoleManager consoleManager = null)
 {
     InputManager      = inputManager ?? new InputManager();
     CommandHistory    = commandHistory ?? new CommandHistory();
     ConsoleManager    = consoleManager ?? new ConsoleManager();
     CommandDispatcher = commandDispatcher;
     SuggestionManager = suggestionManager ?? new SuggestionManager();
 }
Ejemplo n.º 2
0
 public Shell(ICommandDispatcher dispatcher, ISuggestionManager suggestionManager = null, IConsoleManager consoleManager = null)
     : this(new ShellState(dispatcher, suggestionManager, consoleManager : consoleManager))
 {
 }