public virtual void TestIsNotAlive() { IObjectServer server = OpenServer(); int port = server.Ext().Port(); ClientObjectContainer client = OpenClient(port); server.Close(); Assert.IsFalse(client.IsAlive()); client.Close(); }
/// <exception cref="System.Exception"></exception> public virtual void TestIsAliveInMultiThread() { IBlockingQueue4 barrier = new BlockingQueue(); client = (ClientObjectContainer)OpenNewSession(); client.MessageListener(new _IMessageListener_23(this, barrier)); var workThread = new Thread(new _IRunnable_38(), "Quering"); workThread.SetDaemon(true); workThread.Start(); barrier.Next(); client.IsAlive(); }