예제 #1
0
        public async void TestProxyCreation()
        {
            var caculator = RpcProxy.Create <ICaculator, ProxyTest>();

            Assert.Equal(3, await caculator.Add(1, 2));
            Assert.Equal("Hello World", await caculator.Concact("Hello ", "World"));
        }
예제 #2
0
 protected virtual T CreateClient <T>()
 {
     return(RpcProxy.Create <T, ClientDispatchProxy>());
 }