Exemple #1
0
        static void Main(string[] args)
        {
            var client02 = new Client02();
            try
            {
                client02.GetGreeting();
            }
            catch (HttpOperationException e)
            {
                Console.WriteLine("inappropriate greeting");
                Console.WriteLine(e.Message);
            }

            Console.WriteLine("Any key to exit.");
            Console.ReadKey();
        }
Exemple #2
0
        static void Main(string[] args)
        {
            var client02 = new Client02();

            try
            {
                client02.GetGreeting();
            }
            catch (HttpOperationException e)
            {
                Console.WriteLine("inappropriate greeting");
                Console.WriteLine(e.Message);
            }

            Console.WriteLine("Any key to exit.");
            Console.ReadKey();
        }