예제 #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);
        }
    }