Esempio n. 1
0
        public void JsonTest()
        {
            serializationFactory = new CrossLanguageSerializationFactory();

            var testService = new DynamicProxy(typeof(TestService), URI
                , new RemotingHandler(DefaultLoggerFactory.Default
                , new ClientChannelSharedSelector()
                , serializationFactory)).GetTransparentProxy() as TestService;
            Assert.AreEqual("hi", testService.Echo("hi"));
        }
Esempio n. 2
0
 public void InvokeTest()
 {
     var testService = new DynamicProxy(typeof(TestService), URI
         , new RemotingHandler(DefaultLoggerFactory.Default
         , new ClientChannelSharedSelector()
         , serializationFactory))
         {
             //ExecutionTimeout = 1000
         }.GetTransparentProxy() as TestService;
     Assert.AreEqual("hi", testService.Echo("hi"));
 }