示例#1
0
    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);
        }
    }
示例#2
0
文件: AllTests.cs 项目: zhoushiyi/ice
    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);
        }
    }