protected void Connect(ref Proxy proxy, ref Session session) { if (proxy == null) { proxy = new Proxy(); int ret = proxy.connect(0, _server); if (ret < 0) { throw new Exception(proxy.get_error(ret)); } ret = proxy.logon(0, _dataSource, _userName, EncryptionUtility.Decrypt(_password)); if (ret < 0) { throw new Exception(proxy.get_error(ret)); } proxy.silent_mode = true; session = new eB.Data.Session(); session.AttachProtoProxy(proxy.proto_proxy, proxy.connect_info); } }