Пример #1
0
    //
    // Close the connection associated with the proxy and wait until the close completes.
    //
    private static void closeConnection(Ice.ObjectPrx prx)
    {
        CloseCallback cb = new CloseCallback();

        prx.ice_getConnection().setCloseCallback(cb.closed);
        prx.ice_getConnection().close(false);
        cb.check();
    }
Пример #2
0
    //
    // Close the connection associated with the proxy and wait until the close completes.
    //
    private static void closeConnection(IObjectPrx prx)
    {
        CloseCallback cb = new CloseCallback();

        prx.GetConnection().SetCloseCallback(cb.closed);
        prx.GetConnection().Close(ConnectionClose.GracefullyWithWait);
        cb.check();
    }
Пример #3
0
    //
    // Close the connection associated with the proxy and wait until the close completes.
    //
    private static void closeConnection(Ice.ObjectPrx prx)
    {
        CloseCallback cb = new CloseCallback();

        prx.ice_getConnection().setCloseCallback(cb.closed);
        prx.ice_getConnection().close(Ice.ConnectionClose.GracefullyWithWait);
        cb.check();
    }
Пример #4
0
 //
 // Close the connection associated with the proxy and wait until the close completes.
 //
 private static void closeConnection(Ice.ObjectPrx prx)
 {
     CloseCallback cb = new CloseCallback();
     prx.ice_getConnection().setCloseCallback(cb.closed);
     prx.ice_getConnection().close(false);
     cb.check();
 }