Exemplo n.º 1
0
        public Client()
        {
            //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
            //Code to be inserted in Main(). When server and Client apps will be separated

            Console.WriteLine(
                "Input your query for server.\nIt can consist of commands separated by ',' ' '.' , new line or tab:\n");
            Console.WriteLine("1)Increment");
            Console.WriteLine("2)Decrement");
            Console.WriteLine("3)Flush");
            string Request = Console.ReadLine();
            ActionProcessor ap = new ActionProcessor();
            try
            {
                ap.PerformRequest(Request);
            }
            catch (TooManyActionsException e)
            {
                Console.WriteLine(e.Message);
            }

            //End of Main() code
        }