예제 #1
0
파일: AllTests.cs 프로젝트: summer1988/ice
    //
    // 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
파일: AllTests.cs 프로젝트: Crysty-Yui/ice
 //
 // 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();
 }