private static void ConsumerLoop() { while (!_shutdown) { string line = CommandLineQueue.Deqeue(); if (line == null) { return; } OnCommandLineReceived(line); } }