using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GreetingServiceLibrary;
using System.ServiceModel;
using System.ServiceModel.Description;

namespace GreetingServiceHosts.Tcp
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("GreetingServiceHost(tcp:2111) starting");
            using (ServiceHost host = new ServiceHost(typeof(GreetingService)))
            {
                //run host
                host.Open();
                Console.WriteLine("GreetingServiceHost(tcp:2111) started. Press enter to stop.");
                Console.ReadLine();
            }

            Console.WriteLine("GreetingServiceHost(tcp:2111) stopped");
            Console.ReadLine();
        }
    }
}
