Exemple #1
0
        /// <summary>
        ///		获取一个客户端代理, 带ContextUri
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <returns></returns>
        public RpcClientProxy GetProxy <T>(ResolvableUri uri)
        {
            var intf = RpcClientInterfaceFactory <T> .GetOne();

            return(new RpcClientProxy(_connection, intf, uri));
        }
Exemple #2
0
        public RpcClientProxy GetProxy <T>()
        {
            RpcClientProxy proxy = new RpcClientProxy(this, RpcClientInterfaceFactory <T> .GetOne(), null);

            return(proxy);
        }