using System;
using System.ServiceModel;
using GeometryServiceLibrary;

namespace GeometryServiceHosts.DiscoveryEnabled
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("GeometryServiceHost (discovery enabled) starting");
            using (ServiceHost host = new ServiceHost(typeof(GeometryService)))
            {
                //run host
                host.Open();
                Console.WriteLine("GeometryServiceHost (discovery enabled) started. Press enter to stop.");
                Console.ReadLine();
            }

            Console.WriteLine("GeometryServiceHost (discovery enabled) stopped");
            Console.ReadLine();
        }
    }
}
