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