예제 #1
0
        static void Main(string[] args)
        {
            var proxy = new NewServerProxy();

            Console.WriteLine("What would you like to order? ");
            var order = Console.ReadLine();

            proxy.TakeOrder(order);
            Console.WriteLine("Sure thing!  Here's your " + proxy.DeliverOrder() + ".");
            Console.WriteLine("How would you like to pay?");
            var payment = Console.ReadLine();

            proxy.ProcessPayment(payment);

            Console.ReadKey();
        }
예제 #2
0
파일: Program.cs 프로젝트: Moreno092/Proxy
        static void Main(string[] args)
        {
            Server server3 = new Server();

            NewServerProxy newServerProxy3 = new NewServerProxy();
        }