public void Run() { while (IsRunning) { string inputCommand = reader.ReadInput(); var commandParameters = this.ParseInput(inputCommand); string result = commandInterpreter.InterpredCommand(commandParameters, serviceProvider); writer.WriteGatherOutput(result); if (inputCommand == "Shutdown") { Environment.Exit(0); } } }