/// <exception cref="System.Exception"></exception> private void CloseServer() { if (null != _server) { IThreadPool4 serverThreadPool = ServerThreadPool(); _server.Close(); _server = null; if (null != serverThreadPool) { serverThreadPool.Join(ThreadpoolTimeout); } } }
/// <exception cref="System.Exception"></exception> public override void Close() { if (null != _objectContainer) { IThreadPool4 clientThreadPool = ClientThreadPool(); _objectContainer.Close(); _objectContainer = null; if (null != clientThreadPool) { clientThreadPool.Join(ThreadpoolTimeout); } } CloseServer(); }