static void connect(Ice.ObjectPrx proxy) { if (proxy.ice_getCachedConnection() != null) { proxy.ice_getCachedConnection().close(Ice.ConnectionClose.GracefullyWithWait); } try { proxy.ice_ping(); } catch (Ice.LocalException) { } if (proxy.ice_getCachedConnection() != null) { proxy.ice_getCachedConnection().close(Ice.ConnectionClose.GracefullyWithWait); } }
static void connect(Ice.ObjectPrx proxy) { if (proxy.ice_getCachedConnection() != null) { proxy.ice_getCachedConnection().close(false); } try { proxy.ice_ping(); } catch (Ice.LocalException) { } if (proxy.ice_getCachedConnection() != null) { proxy.ice_getCachedConnection().close(false); } }