Description of KillCursorsMessage.
Inheritance: RequestMessage
コード例 #1
0
ファイル: Cursor.cs プロジェクト: sbos/mongodb-csharp
 public void Dispose()
 {
     if(this.Id == 0) return; //All server side resources disposed of.
     KillCursorsMessage kcm = new KillCursorsMessage(this.Id);
     connection.SendMessage(kcm);
     this.id = 0;
 }
コード例 #2
0
ファイル: Cursor.cs プロジェクト: qjlee/mongodb-csharp
 public void Dispose()
 {
     if(this.Id == 0) return; //All server side resources disposed of.
     KillCursorsMessage kcm = new KillCursorsMessage(this.Id);
     try{
         this.id = 0;
         connection.SendMessage(kcm);
     }catch(IOException ioe){
         throw new MongoCommException("Could not read data, communication failure", this.connection,ioe);
     }
 }