예제 #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"));
        }
예제 #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"));
 }