Пример #1
0
        private static void TestWpfServices()
        {
            var serv = new ServiceReference.CalculatorClient();

            var result = serv.AddAsync(3, 4).Result;

            Console.WriteLine(result);

            var servTopShelf   = new CalculatorClient();
            var resultTopShelf = servTopShelf.Multiply(2.5, 5);

            Console.WriteLine($"TopSelf {resultTopShelf}");

            var servNoConfig = new MyServiceClient();
            var stringResult = servNoConfig.ConvertString(Environment.SystemDirectory);

            Console.WriteLine($"To Upper {stringResult}");
        }