private void AddDiscard(int index)
 {
     if (index == -1)
     {
         return;
     }
     DiscardIndexes.Add(index);
     // if everything is discarded, there's nothing left to do
     // ideally we'd also cancel the background task here
     if (!IDs.Any())
     {
         ResultMaps = new Dictionary <long, Map>();
         Finish();
     }
 }
示例#2
0
 public bool In(params int[] IDs)
 {
     return(IDs.Any(id => this.ID.Equals(id)));
 }
 protected virtual bool ContainsInternal(ObjectId id)
 {
     return(IDs.Any(oid => oid.Equals(id)));
 }