/// <summary> /// 释放 /// </summary> public void Dispose() { isDis = true; client = null; ic.shutdown(); ic.Dispose(); ic = null; }
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); }
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); }
/// <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); } }
public static void write__(IceInternal.BasicStream os__, LogServer_RPCPrx v__) { os__.writeProxy(v__); }