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

namespace GeometryServiceClients.ConsoleApp
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("GeometryService Client is starting");
            using (GeometryServiceReference.GeometryServiceClient client = new GeometryServiceReference.GeometryServiceClient())
            {
                Console.WriteLine("GeometryService Client connected");
                double tempResult = client.GetCircleArea(new GeometryServiceReference.Circle() { Radius = 2 });
                Console.WriteLine("Circle area = {0}", tempResult);
                tempResult = client.GetRectangleArea(new GeometryServiceReference.Rectangle() { A = 2, B = 3 });
                Console.WriteLine("Rectangle area = {0}", tempResult);
            }

            Console.WriteLine("GeometryService Client finished. Press enter to exit");
            Console.ReadLine();
        }
    }
}
