Ejemplo n.º 1
0
        private static void Complex(IWampRealmServiceProvider serviceProvider)
        {
            IComplexResultService proxy =
                serviceProvider.GetCalleeProxy <IComplexResultService>();

            string[] splitted = proxy.SplitName("George Bush");
            Console.WriteLine("Pinged!");
        }
Ejemplo n.º 2
0
        public async Task ComplexServiceSplitName()
        {
            WampPlayground playground = new WampPlayground();

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

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

            string[] splitName = proxy.SplitName("Homer Simpson");

            Assert.That(splitName[0], Is.EqualTo("Homer"));
            Assert.That(splitName[1], Is.EqualTo("Simpson"));
        }