Пример #1
0
        public void DoTheMath(int arg1, int arg2)
        {
            var client = new MathResponseClient("localhost");

            if (arg2 != 0)
            {
                client.FourResults(arg1 + arg2, arg1 * arg2, arg1 - arg2, arg1 / arg2);
            }
            else
            {
                client.ThreeResults(arg1 + arg2, arg1 * arg2, arg1 - arg2);
            }
        }
Пример #2
0
        public void Ping(long value)
        {
            var client = new MathResponseClient("localhost");

            client.Pong(value);
        }