Beispiel #1
0
 public override void RunTestCase(Test.IRemoteObjectAdapterPrx adapter, Test.ITestIntfPrx proxy)
 {
     adapter.hold();
     waitForClosed();
     lock (this)
     {
         test(_heartbeat == 0);
     }
 }
Beispiel #2
0
            public override void RunTestCase(Test.IRemoteObjectAdapterPrx adapter, Test.ITestIntfPrx 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(5000); // Idle for 5 seconds

                lock (this)
                {
                    test(_heartbeat == 0);
                    test(!_closed); // Not closed yet because of graceful close.
                }

                adapter.activate();
                waitForClosed();
            }