using System;
using System.ServiceModel;
using System.ServiceModel.Description;
using GeometryServiceLibrary;

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

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