Beispiel #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();
    }
Beispiel #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();
    }
Beispiel #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();
    }
Beispiel #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();
 }