Example #1
0
        internal static void Run(TestHelper helper, IMyClassPrx proxy)
        {
            Communicator?communicator = helper.Communicator;

            TestHelper.Assert(communicator != null);
            IMyClassPrx p = proxy.Clone(oneway: true);

            {
                var cb = new Callback();
                p.IcePingAsync(progress: new Progress <bool>(sentSynchronously => cb.Sent()));
                cb.Check();
            }

            bool   b  = p.IceIsAAsync("::ZeroC::Ice::Test::Operations::MyClass").Result;
            string id = p.IceIdAsync().Result;

            string[] ids = p.IceIdsAsync().Result;

            {
                var cb = new Callback();
                p.OpVoidAsync(progress: new Progress <bool>(sentSynchronously => cb.Sent()));
                cb.Check();
            }

            {
                var cb = new Callback();
                p.OpIdempotentAsync(progress: new Progress <bool>(sentSynchronously => cb.Sent()));
                cb.Check();
            }

            {
                var cb = new Callback();
                p.OpOnewayAsync(progress: new Progress <bool>(sentSynchronously => cb.Sent()));
                cb.Check();
            }

            {
                var cb = new Callback();
                p.OpOnewayMetadataAsync(progress: new Progress <bool>(sentSynchronously => cb.Sent()));
                cb.Check();
            }

            (byte ReturnValue, byte p3) = p.OpByteAsync(0xff, 0x0f).Result;
        }