private void RetrieveMoreData() { GetMoreMessage gmm = new GetMoreMessage(this.FullCollectionName, this.Id, this.Limit); this.reply = connection.SendTwoWayMessage(gmm); this.id = this.reply.CursorID; }
private void RetrieveMoreData() { GetMoreMessage gmm = new GetMoreMessage(this.FullCollectionName, this.Id, this.Limit); try{ this.reply = connection.SendTwoWayMessage(gmm); this.id = this.reply.CursorID; }catch(IOException ioe){ this.id = 0; throw new MongoCommException("Could not read data, communication failure", this.connection,ioe); } }