コード例 #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>());
 }