Example #1
0
        /// <summary>
        ///		获取一个Rpc客户端代理
        /// </summary>
        /// <typeparam name="T">Rpc的声明Interface</typeparam>
        /// <param name="uri">服务器的具体网络地址,如: sipc://192.168.1.100:5700</param>
        /// <returns>Rpc客户端代理了类</returns>
        public static RpcClientProxy GetProxy <T>(string uri)
        {
            ServerUri u = ServerUri.Parse(uri);

            return(GetProxyInner <T>(u, null));
        }
Example #2
0
        public static RpcClientProxy GetProxyDirect(string uri, string serviceName)
        {
            ServerUri u = ServerUri.Parse(uri);

            return(GetProxyInner(u, null, serviceName));
        }