Beispiel #1
0
        private static void Main(string[] args)
        {
            var client = new AddClient();

            Console.WriteLine("Add Api Call" + client.AddAsync(2, 3).GetAwaiter().GetResult());
            var client2 = new SubtractClient();

            Console.WriteLine("Subtract Api Call" + client2.SubtractAsync(2, 3).GetAwaiter().GetResult());
            Console.WriteLine("Add Api Call" + client.AddAsync(2, 3).GetAwaiter().GetResult());
            Console.WriteLine("Subtract Api Call" + client2.SubtractAsync(2, 3).GetAwaiter().GetResult());
        }