public override void runTestCase(RemoteObjectAdapterPrx adapter, TestIntfPrx proxy) { try { // When the OA is put on hold, connections shouldn't // send heartbeats, the invocation should therefore // fail. proxy.sleepAndHold(10); test(false); } catch (Ice.ConnectionTimeoutException) { adapter.activate(); proxy.interruptSleep(); waitForClosed(); } }
public override void runTestCase(RemoteObjectAdapterPrx adapter, TestIntfPrx proxy) { // // Put the adapter on hold. The server will not respond to // the graceful close. This allows to test whether or not // the close is graceful or forceful. // adapter.hold(); Thread.Sleep(1500); // Idle for 1.5 second lock (this) { test(_heartbeat == 0); test(!_closed); // Not closed yet because of graceful close. } adapter.activate(); Thread.Sleep(500); waitForClosed(); }
public override void runTestCase(RemoteObjectAdapterPrx adapter, TestIntfPrx proxy) { // // Put the adapter on hold. The server will not respond to // the graceful close. This allows to test whether or not // the close is graceful or forceful. // adapter.hold(); Thread.Sleep(1500); // Idle for 1.5 second lock(this) { test(_heartbeat == 0); test(!_closed); // Not closed yet because of graceful close. } adapter.activate(); Thread.Sleep(500); waitForClosed(); }
public override void runTestCase(RemoteObjectAdapterPrx adapter, TestIntfPrx proxy) { try { // When the OA is put on hold, connections shouldn't // send heartbeats, the invocation should therefore // fail. proxy.sleepAndHold(10); test(false); } catch(Ice.ConnectionTimeoutException) { adapter.activate(); proxy.interruptSleep(); waitForClosed(); } }