Ejemplo n.º 1
0
        public static void Main(string[] args)
        {
            MyMathServiceClient myMathServiceClient = new MyMathServiceClient("MathServcieConfig");

            var value = myMathServiceClient.Add(2,2);
            value++;
        }
Ejemplo n.º 2
0
        public static void Main(string[] args)
        {
            MyMathServiceClient myMathServiceClient = new MyMathServiceClient("MathServcieConfig");


            var value = myMathServiceClient.Add(2, 2);

            value++;
        }
Ejemplo n.º 3
0
 static void Main(string[] args)
 {
     using (MyMathServiceClient client = new MyMathServiceClient("BasicHttpBinding_MyMathService")) {
         Console.Write("Enter First Number: ");
         int a = Convert.ToInt32(Console.ReadLine());
         Console.Write("Enter Second Number: ");
         int b = Convert.ToInt32(Console.ReadLine());
         Console.WriteLine("Here's Your Sum: {0}", client.Sum(a, b));
     }
 }