Esempio n. 1
0
        private void call_rpc(ClientService.Iface client)
        {
            // This no longer compiles after updating to the latest Client.thrift file.
            //bool foo = client.foo();

            bool negativeNumbersReturnFalse = client.fooEx(-1);
            Assert.IsFalse(negativeNumbersReturnFalse);

            bool positiveNumbersReturnTrue = client.fooEx(1);
            Assert.IsTrue(positiveNumbersReturnTrue);

            bool bar = client.bar();
            Assert.IsTrue(bar);
        }