Beispiel #1
0
        /// <summary>
        /// 创建远程服务对象
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <returns></returns>

        public static T CreateServices <T>()
        {
            IServices server = (IServices)Activator.GetObject(typeof(IServices), Address);

            if (server == null)
            {
                return(default(T));
            }
            else
            {
                return(server.CreateServices <T>());
            }
        }