using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GreetingServiceClients.ConsoleApp
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Greeting client starting");
            //using (GreetingServiceReference.GreetingServiceClient client = new GreetingServiceReference.GreetingServiceClient())
            using (GreetingServiceReference.GreetingServiceClient client = new GreetingServiceReference.GreetingServiceClient("BasicHttpBinding_OverRoutingService"))
            {
                Console.WriteLine("SayHello() result: {0}", client.SayHello());
            }
            Console.WriteLine("Greeting client finished. Press enter to exit.");
            Console.ReadLine();
        }
    }
}
