Пример #1
0
 /// <summary>
 /// 释放
 /// </summary>
 public void Dispose()
 {
     isDis  = true;
     client = null;
     ic.shutdown();
     ic.Dispose();
     ic = null;
 }
Пример #2
0
        public static LogServer_RPCPrx uncheckedCast(Ice.ObjectPrx b)
        {
            if (b == null)
            {
                return(null);
            }
            LogServer_RPCPrx r = b as LogServer_RPCPrx;

            if (r == null)
            {
                LogServer_RPCPrxHelper h = new LogServer_RPCPrxHelper();
                h.copyFrom__(b);
                r = h;
            }
            return(r);
        }
Пример #3
0
        public static LogServer_RPCPrx checkedCast(Ice.ObjectPrx b, _System.Collections.Generic.Dictionary <string, string> ctx)
        {
            if (b == null)
            {
                return(null);
            }
            LogServer_RPCPrx r = b as LogServer_RPCPrx;

            if ((r == null) && b.ice_isA(ice_staticId(), ctx))
            {
                LogServer_RPCPrxHelper h = new LogServer_RPCPrxHelper();
                h.copyFrom__(b);
                r = h;
            }
            return(r);
        }
Пример #4
0
        /// <summary>
        /// 初始化
        /// </summary>
        /// <returns></returns>
        public bool Init()
        {
            try
            {
                ic = Ice.Util.initialize();

                // 连接
                Ice.ObjectPrx objectPrx = ic.stringToProxy(strLogPluginRPCId.value +
                                                           string.Format(":tcp -h {0} -p {1} -t 5000",
                                                                         EEMSConfigHelper.GetValueByCommomConfig("config/CommonConfig/log_target_ip", "127.0.0.1"),
                                                                         EEMSConfigHelper.GetValueByCommomConfig("config/CommonConfig/log_target_port", "40040")));

                client = LogServer_RPCPrxHelper.checkedCast(objectPrx);

                WirterContent();
                return(true);
            }
            catch
            {
                return(false);
            }
        }
Пример #5
0
 public static void write__(IceInternal.BasicStream os__, LogServer_RPCPrx v__)
 {
     os__.writeProxy(v__);
 }