예제 #1
0
        public static void Main(string[] args)
        {
            MyMathServiceClient myMathServiceClient = new MyMathServiceClient("MathServcieConfig");

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


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

            value++;
        }
예제 #3
0
파일: Program.cs 프로젝트: ch3rag/C-Sharp
 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));
     }
 }