Esempio n. 1
0
        public async Task ComplexServiceAddComplex_TupleCalleeProxyTask()
        {
            WampPlayground playground = new WampPlayground();

            var channel = await SetupService <ComplexResultService>(playground);

            INamedTupleComplexResultService proxy =
                channel.RealmProxy.Services.GetCalleeProxy <INamedTupleComplexResultService>();

            var(c, ci) = await proxy.AddComplexAsync(2, 3, 4, 5);

            Assert.That(c, Is.EqualTo(6));
            Assert.That(ci, Is.EqualTo(8));
        }
Esempio n. 2
0
        public async Task ComplexServiceAddComplex_TupleCalleeProxyTask()
        {
            WampPlayground playground = new WampPlayground();

            var channel = await SetupService <ComplexResultService>(playground);

            INamedTupleComplexResultService proxy =
                channel.RealmProxy.Services.GetCalleeProxyPortable <INamedTupleComplexResultService>();

            int c;
            int ci;
            ValueTuple <int, int> result = await proxy.AddComplexAsync(2, 3, 4, 5);

            c  = result.Item1;
            ci = result.Item2;
            //var (c, ci) = await proxy.AddComplexAsync(2, 3, 4, 5);

            Assert.That(c, Is.EqualTo(6));
            Assert.That(ci, Is.EqualTo(8));
        }