예제 #1
0
파일: UpdateMessage.cs 프로젝트: npenin/uss
 protected override void WriteBody (ISonWriter writer){
     writer.WriteValue(BsonDataType.Integer,0);
     writer.WriteString(this.FullCollectionName);
     writer.WriteValue(BsonDataType.Integer,this.Flags);
     writer.Write(Selector);
     writer.Write(Document);
 }
예제 #2
0
        protected override void WriteBody (ISonWriter writer){
            writer.WriteValue(BsonDataType.Integer,0);
            writer.WriteValue(BsonDataType.Integer, this.CursorIDs.Length);            

            foreach(long id in this.CursorIDs){
                writer.WriteValue(BsonDataType.Long, id);
            }
        }
예제 #3
0
파일: QueryMessage.cs 프로젝트: npenin/uss
 protected override void WriteBody (ISonWriter writer){
     writer.WriteValue(BsonDataType.Integer,(int)this.Options);
     writer.WriteString(this.FullCollectionName);
     writer.WriteValue(BsonDataType.Integer,(int)this.NumberToSkip);
     writer.WriteValue(BsonDataType.Integer,(int)this.NumberToReturn);
     writer.Write(this.Query);
     if(this.ReturnFieldSelector != null){
         writer.Write(this.ReturnFieldSelector);
     }
 }
예제 #4
0
파일: MsgMessage.cs 프로젝트: npenin/uss
 protected override void WriteBody (ISonWriter writer){
     writer.WriteString(this.Message);            
 }
예제 #5
0
 protected override void WriteBody (ISonWriter writer){
     writer.WriteValue(BsonDataType.Integer,0);
     writer.WriteString(this.FullCollectionName);
     writer.WriteValue(BsonDataType.Integer,this.NumberToReturn);
     writer.WriteValue(BsonDataType.Long,this.CursorID);
 }       
예제 #6
0
 protected abstract void WriteBody(ISonWriter writer);