Пример #1
0
        static void ReadIn()
        {
            CommandExecuter commandExecuter = new CommandExecuter();

            while (true)
            {
                string commandString = Console.ReadLine();

                readInSafeAccess.WaitOne(Timeout.InfiniteTimeSpan, true);
                string[] commands = commandExecuter.BreakCommandString(commandString);
                commandExecuter.Execute(commands);
                readInSafeAccess.ReleaseMutex();
            }
        }