Example #1
0
        public async Task ComplexNamedTupleServiceAddComplex()
        {
            WampPlayground playground = new WampPlayground();

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

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

            proxy.AddComplex(2, 3, 4, 5, out int c, out int ci);

            Assert.That(c, Is.EqualTo(6));
            Assert.That(ci, Is.EqualTo(8));
        }
        public async void ComplexServiceAddComplex()
        {
            WampPlayground playground = new WampPlayground();

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

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

            int c;
            int ci;

            proxy.AddComplex(2, 3, 4, 5, out c, out ci);

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