Exemple #1
0
 public void SetFileIndex(int docId, int fileIndex)
 {
     lock (_LockObj)
     {
         int index = _DocPayload.BinarySearch(new DocPayload(docId));
         if (index < 0)
         {
             return;
         }
         else
         {
             _DocPayload.ToArray()[index].Payload.FileIndex = fileIndex;
         }
     }
 }