public void Work() { var commands = _store.GetCommands(); _logger.Log(string.Format("Command count {0}", commands.Count)); if (commands.Count == 0) { RestartManager.NoCommandsFoundRestartCheck(_logger); LogManager.ShouldBeLogging = false; return; } LogManager.ShouldBeLogging = true; foreach (var command in commands) { if (CommandsController.ProcessCommands) { ProcessCommand(command); } else { _logger.Log(string.Format("Bypassing command {0}", command.name)); } } RestartManager.CommandsRunRestartCheck(_logger); }